Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hi guys,
We've got two types of urls being indexed on Google:
/products/example-product-handle
and
/collections/all/products/example-product-handle
We resolved the second URL by removing the within: collection from liquid, fine, but Google are still indexing those urls?
I tried to add a redirect in the admin, e.g.
Redirect From /collections/all/products/example-product-handle
Redirect To /products/example-product-handle
But it's not working as example-product-handle is a valid product / active product still?
Is there any easy way to 301 redirect all these types of urls?
Many thanks,
Jorge
You can only redirect something when the url 404s. Since those urls work the redirection won't trigger.
Does your theme not have canonical urls in place? Care to share a link to a product on your shop that you're concerned about?
Hey! AH man, that's unfortunate - we have canonicals in place that are to the correct product url, but Google are flagging it as an issue as canonical doesn't match the parent url
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025