WebSite X5Help Center

 
Giulio V.
Giulio V.
User

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

Autor: Giulio V.
Visitado 1112, Seguidores 1, Compartilhado 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.

Publicado em
2 RESPOSTAS - 1 ÚTIL
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>

Ler mais
Publicado em de Laszlo M.