I changed my site from static html to wordpress. I had some really good and strong backlinks that are pointing to /index.html and google finds this as a 404 page. How can I redirect to the main page (index.php?), the simple 301 redirect doesn't work here. thanks
Hey I moved from a static .html to WordPress and had the same problem. I did a lot of searching around and this is the best I found. But please note that I am an htaccess newb and do not promise anything with this code. All I know is that it redirects visitors from index.html to www.site.com RewriteCond %{HTTP_HOST} ^YourDomain\.com$ [NC] RewriteRule ^(.*)$ http://www.YourDomain.com/$1 [R=301,L] Edit - It may also be this line of code: RewriteRule ^(.*)index\.html$ $1 [R=301,L] Sorry man, I don't know which line of code does it but after a quick glance it must be one of those.