WebSite X5Help Center

 
Giulio V.
Giulio V.
User

Cannot do Redirect in /index.html page  en

Автор: Giulio V.
Просмотрено 1109, Подписчики 1, Размещенный 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?

Размещено
2 Ответы - 1 Полезно
Daniel W.
Daniel W.
User
Лучший пользователь месяца EN

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

Читать больше
Размещено От Daniel W.
Ro Partner
Ro Partner
User

.htaccess:

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

Читать больше
Размещено От Ro Partner