WebSite X5Help Center

 
Giulio V.
Giulio V.
User

Cannot do Redirect in /index.html page  en

Autor: Giulio V.
Visitado 823, 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
2 RESPUESTAS - 1 ÚTIL
Daniel W.
Daniel W.
User
Usuario del mes DEUsuario del mes EN

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

Leer más
Publicado en de Daniel W.
Ro Partner
Ro Partner
User

.htaccess:

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

Leer más
Publicado en de Ro Partner