WebSite X5Help Center

 
Giulio V.
Giulio V.
User

Cannot do Redirect in /index.html page  en

Autor: Giulio V.
Visited 825, Followers 1, Udostępniony 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?

Posted on the
2 ODPOWIEDZI - 1 POMOCNY
Daniel W.
Daniel W.
User
Najlepszy Użytkownik miesiąca DENajlepszy Użytkownik miesiąca EN

The index.html is normally the home page, so what's the point of a redirect?

Czytaj więcej
Posted on the from Daniel W.
Ro Partner
Ro Partner
User

.htaccess:

RewriteEngine On
RewriteRule ^index\.html$ / [R=301,L]
RewriteRule ^(.*)/index\.html$ /$1/ [R=301,L]

Czytaj więcej
Posted on the from Ro Partner