Hello guys, Google keeps indexing some of my articles in this form: mywebsite.com/item/my-article However I'm mainly using: mywebsite.com/item/articles/my-article So in a way I have duplicated content and also the first link does not show the modules I want. I want to create a .htaccess redirect than whenever someone joins on the first link to be automatically redirected to the second link. Thank You
I somehow get redirected to : mywebsite.com/item/articles/articles/articles/articles/articles/articles/articles/articles/articles/articles/articles/articles/articles/articles/articles/articles/articles/articles/articles/articles/articles/sniper-guide-dota-2 (where mywebsite is my actually website)
Plug the normal and desired URLs into http://redbot.org/ This will help you analyze the headers to see if you have multiple redirects for some reason. If you are using a CMS there could be other rewrite rules causing issues. Another format to try is: RewriteRule ^subdirectory/(.*)$ /anotherdirectory/$1 [R=301,NC,L] Code (markup): The additional items at the end tell it to use a 301, ignore case and be the last rule processed.