i have some issues with duplicate content on my website. in the past i had diverse stores setup and i disabled them but the urls seem to exist still. i would like to set up a forwarding rule example:
now i have 2 product pages:
website.com/product-abc-123
website.com/product-abc-123?___store=tienda
i would like to setup now that ?___store=tienda will always be redirected to original url. i have checked the ?___store=tienda product page holds the canonical link rel= canonical href= website.com/product-abc-123 but i would like to get rid of them as i have tons of them showing up in google webmaster tools.
same happens to my integrated blog in magento with the fishpig extension, i write blog articles and it seems that it creates duplicate content with the same url structure:
website.com/blog/category/article1.html
website.com/blog/category/article1.html?___store=tienda
Ideally i wish to create a rule in .htaccess file, what i could do already was to redirect all links from ?___store=tienda to home page adding following in .htaccess file
RewriteEngine On
RewriteCond %{THE_REQUEST} \?___store=tienda
RewriteRule ^(.*)$ /$1? [L,R=301]
source: https://stackoverflow.com/questions/16291281/rewriting-all-urls-with-a-question-mark