skip to Main Content

My product page (Shopify) URL is abc.com/product/blue-shirt/ and it is in the "Shirt" collection. I have an issue about indexing, Like; Google indexing both URLs abc.com/product/blue-shirt/ | abc.com/collections/shirt/product/blue-shirt/.

I don’t know why, because I have submitted a sitemap with this format abc.com/product/blue-shirt/, Som other URLs shouldn’t be indexed.

Hope you understand my point.

Thanks.

2

Answers


  1. Chosen as BEST ANSWER

    Yes, I think those indexed URLs are now removing from Google. By removing "within: collection" from code, google won't index it.


  2. Replace the product.url in your collections template or other templates where collection product links are used. You just need to remove "within: collection".

    {{ product.url | within: collection }}
    

    and replace with

    {{ product.url }}
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search