WebSite X5Help Center

 
Giulio V.
Giulio V.
User

Setting Up Redirects on homepage & blog page index pages breaks the site  en

Автор: Giulio V.
Просмотрено 1496, Подписчики 1, Размещенный 0  

For some reason, when I setup these redirects:

setting up either of these redirects totally breaks the site. Setting up the above redirects makes these pages not load correctly. 

My SEO guy (who I love) says that Google wants these redirects to avoid duplicate content. The problem is, whenever we setup these redirects, the pages won't load. How you suggest I fix this issue?

FYI, I don't need help setting up the redirects themselves, I need help setting redirects that actually work.

Размещено
2 Ответы - 1 Полезно
Laszlo M.
Laszlo M.
User

index.php?

I found it here on one side, it works for me.
Type in the htaccess folder this applies to the main page.
SEO will be so good, you will not have a separate index.html page for the main page

(/htps://prolinesystems.net/index.html/ /https://prolinesystems.net/)

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

And this is good to transmit the other pages not just for the blogThe blog does not articulate because there is no blog after URL (index.php?)

<IfModule mod_rewrite.c>

RewriteEngine On

Redirect 301 /https://prolinesystems.net/blog/index.php? /https://prolinesystems.net/blog/

</IfModule>

Читать больше
Размещено От Laszlo M.