I've just looked at my Google Webmaster tools for the first time in
ages and found many crawl errors. Google seems to think I have 100
backlinks pointing to a non-existent index.html. In fact these
backlinks are just pointing to my root domain
http://www.water-retention.net
My site runs on Wordpress. I have spent much time searching for the
right solution for how to redirect index.html to the root,
using .htaccess. I found your great page with the mod_rewrite code to
do this, but sadly I can't get it to work.
Can anyone help? Here is the code I have in .htaccess
<IfModule mod_security.c>
SecFilterInheritance Off
</IfModule>
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
### re-direct any parked domain/subdomain to www of main domain
RewriteCond %{http_host} !^
www.water-retention.net$ [nc]
RewriteRule ^(.*)$
http://www.water-retention.net/$1 [r=301,nc,L]
### re-direct index.html to root / ###
RewriteCond %{THE_REQUEST} ^.*\/index\.html\ HTTP/
RewriteRule ^(.*)index\.html$ /$1 [R=301,L]
### re-direct index.htm to root / ###
RewriteCond %{THE_REQUEST} ^.*\/index\.htm\ HTTP/
RewriteRule ^(.*)index\.htm$ /$1 [R=301,L]
</IfModule>
### Redirections from bad URLs###
redirect 301 /waterfall-diet.html
http://www.water-retention.net/waterfall-diet/
redirect 301 /idiopathic-edema.html
http://www.water-retention.net/water-retention-diet/
redirect 301 /water-retention-causes.html
http://www.water-retention.net/causes-of-water-retention/
I'm not a complete newbie, but also not a programmer :-)