View Single Post
Old 12-14-2008, 03:29 PM  
Doctor Feelgood
Confirmed User
 
Doctor Feelgood's Avatar
 
Industry Role:
Join Date: Nov 2005
Location: RI
Posts: 2,112
Quote:
Originally Posted by leek View Post
Something like this should do the trick:

Code:
RewriteEngine on
RewriteBase /
RewriteRule ^index\.(htm|html|php) http://www.yourdomain.com/ [R=301,L]
Of course, you'll need mod_rewrite enabled.
that doesnt work on my server so i have to use this and added a line to ignore the directory with my linkex script. you can just replace linkex with any directory that you want it to ignore. but i dont think this is amelia`s problem. her problem on google is called the "yo-yo effect". its google testing the sites trust.

RewriteEngine on
RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteCond %{THE_REQUEST} !/linkex/ [NC]
RewriteRule ^(.*)index.php$ http://www.yoursite.com/$1 [R=301,L]
Doctor Feelgood is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote