Setting Up Redirects on homepage & blog page index pages breaks the site
Autor: Giulio V.
Visitado 1529,
Followers 1,
Compartido 0
For some reason, when I setup these redirects:
- htps://prolinesystems.net/index/ to https://prolinesystems.net/
- https://prolinesystems.net/blog/index/ to https://prolinesystems.net/blog/
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 en
Are you sure your "beloved SEO expert" told you "REDIRECT" ?
"Maybe" redirects don't work because:
1) You do NOT need a REDIRECT !!!!
2) The pages you point to, as source pages, do NOT exist !
3) what you need is NOT a REDIRECT but is the TAG REL canonical
Here is the documentation:
https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls?hl=en
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>