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 http://domain.com/some-article/ to http://domain.com/some-article by using this code:
<IfModule mod_rewrite.c> RewriteCond %{HTTP_HOST} ^(www.)?domain.com\.com$ [NC] RewriteRule ^(.+)/$ http://domain.com/$1 [R=301,L] </ifmodule>The issue is that http://domain.com/some-article/1 and http://domain.com/some-article both return 200 OK status and deliver the exact same content.
The second issue is that http://domain.com/some-article/2 and http://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.
The topic ‘301 Redirect Duplicate Content’ is closed to new replies.