301 Redirect Duplicate Content
-
Hello,
I’m trying to remove duplicate content to my website by 301 redirects.
I’m currently having a lot of paged articles. I managed to 301 redirect links like https://domain.com/some-article/ to https://domain.com/some-article by using this code:
<IfModule mod_rewrite.c> RewriteCond %{HTTP_HOST} ^(www.)?domain.com\.com$ [NC] RewriteRule ^(.+)/$ https://domain.com/$1 [R=301,L] </ifmodule>
The issue is that https://domain.com/some-article/1 and https://domain.com/some-article both return 200 OK status and deliver the exact same content.
The second issue is that https://domain.com/some-article/2 and https://domain.com/some-article/2/ both return 200 OK status. Although WordPress rewrites the URLs they aren’t 301 redirected.
Any info on the matter would be greatly appreciated.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘301 Redirect Duplicate Content’ is closed to new replies.