A standard 301 redirect for index.html prevents my site from loading.
How do I safely redirect calls to index.html to newsite.com?
Here are the redirects I'm currently using:
- Code: Select all
RewriteCond %{http_host} ^(www\.)?oldsite.com
RewriteRule ^(.*)$ http://www.newsite.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^((www\.)?oldsite\.com|newsite\.com)$ [NC]
RewriteRule ^(.*)$ http://www.newsite.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^index.php/index.php/?(.*)$ http://www.newsite.com/$1 [R=301,L]