WebSite X5Help Center

 
Giulio V.
Giulio V.
User

Cannot do Redirect in /index.html page  en

Autor: Giulio V.
Visitado 1104, Seguidores 1, Compartilhado 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 em
2 RESPOSTAS - 1 ÚTIL
Daniel W.
Daniel W.
User
Usuário do mês EN

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

Ler mais
Publicado em de Daniel W.
Ro Partner
Ro Partner
User

.htaccess:

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

Ler mais
Publicado em de Ro Partner