Google starting showing xxxxxx.com/index.html for my site. How do I do a 301 redirect to xxxxxx.com ?
I've tried this but it's not working. RewriteRule ^index.htm$ http://www.domain.com/ [R=301,L] Thanks for the link. But I already know about that page. Do you know how to do it?
try this PHP code <?php header("Location: http://forums.digitalpoint.com/index.php); ?> Code (markup):
This is working for me. Redirect requests for domain with index.html to www. RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/ RewriteRule ^index\.html$ [url]http://www.example.com/[/url] [R=301,L] Code (markup): Wondering if anyone has a more simplified code. My hosting was giving a 403 error. When i got the site back on line, Google was indexing xxx.com/index.html That put me in an infinite loop
Hi the simplest way to to do this is the following code. My website (nexwiki.org) uses it. Edit it in the htaccess. redirect http://xxx.com/whatever http://www.yyy.xom/whatever Code (markup): hope it helps
Wasn't working because I'm using mod-rewrite You should be using 301 in your code, so that Google sees it as a permanent redirection redirect 301 http://xxx.com/whatever http://www.yyy.xom/whatever Code (markup):
301 redirect is the best way to handle a permanent redirection 1) 301 redirect permanently redirects the URL 2) 302 redirect is temporary and may confuse search engines Use this tool http://www.seologic.com/webmaster-tools/url-redirect.php to check that your redirection is working correctly. You should return HTTP/1.1 301 Moved Permanently
Check my article about avoiding duplicate content on index page. Just replace index.php with index.html