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:

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 (.*)$1? [R=301,L]


Leave a Reply