Hi all, I’m looking for a way to no index all the urls created from /search parameter. Blocking them through robots.txt would be the best solution if the site was new, but in this case we are talking about a site which didn’t block these urls from the beginning. So now, first I need to no index them and then blocking.
I’ve tried many many things, such as:
{% if page.handle contains “search” %}
{% endif %}
Shopify documentation (https://help.shopify.com/en/manual/promoting-marketing/seo/hide-a-page-from-search-engines) is not helpful in this case.
Does anyone know if this is possible? Thank you.