Cannot do Redirect in /index.html page
Autor: Giulio V.
Visitado 1106,
Followers 1,
Compartido 0
As part of ongoing SEO, my SEO guy and I are setting up 301 redirects on different pages of my site.
My SEO guy recommends that we setup a redirect on my /index page to the homepage. While all of my other 301 redirects work, whenever he setups a 301 redirect on my /index page, it fails and breaks the site. The only way to bring the site back online is to re-enable this /index page.
How do I fix this?
Publicado en
The index.html is normally the home page, so what's the point of a redirect?
.htaccess:
RewriteEngine On
RewriteRule ^index\.html$ / [R=301,L]
RewriteRule ^(.*)/index\.html$ /$1/ [R=301,L]