Remove ?=collcc from url

Google Webmasters Tools has notified me about too many duplicated URLs. Some parameters have been added that I don’t know about and I need to remove it, for example:

http://example.com/5454/my-utr.html
http://example.com/5454/my_url.html?collcc=3067605522&

And this is marked as a duplicate URL on Google. How can I block ?=collcc or remove it with .htaccess. Or preferably remove just ?collcc= and redirect to the normal URL with .htaccess?

I know I can block in robots.txt file but I need clean URL still indexed on Google so I need to remove just the query collcc.

I have tried:

RewriteCond %{QUERY_STRING} collcc=
RewriteRule (.*) http://my-site.com/$1? [R=301,L]

Related:

Leave a Reply