Issue with Duplicate Collections Page (Please help!)

Highlighted
New Member
3 0 0

Hi, the following line of code...

{% if template == 'collection' %}{% if collection.handle %}{% else %}
<meta name="robots" content="noindex,follow"/>
{% endif %}{% endif %}

I am trying to noindex pages like http://www.ravenousnutrition.com/collections/types?q=Cycle%20Support and keep pages like http://www.ravenousnutrition.com/collections/cycle-support. The reason is they are the same, but I want to stick with a clean URL. Looks like the first were auto generated...and those are the ones being indexed! Will the code above work or do I need to tweak it?

Thank you!

http://www.ravenousnutrition.com
0 Likes