Quote:
Originally Posted by leek
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]