在 Shopify "Product page" 中索引集合 URL ,为什么?

In Shopify "Product page" is indexed with collection URL , Why?

我的产品页面 (Shopify) URL 是 abc.com/product/blue-shirt/,它在“衬衫”系列中。我有一个关于索引的问题,喜欢; Google 索引两个 URLs abc.com/product/blue-shirt/ | abc.com/collections/shirt/product/blue-shirt/.

我不知道为什么,因为我已经提交了一个格式为 abc.com/product/blue-shirt/ 的站点地图,所以其他 URL 不应该未被编入索引。

希望你明白我的意思。

谢谢。

替换您的产品系列模板或其他使用产品系列产品链接的模板中的 product.url。您只需要删除“within: collection”。

{{ product.url | within: collection }}

并替换为

{{ product.url }}

是的,我认为这些索引 URL 现在正在从 Google 中删除。通过从代码中删除“within: collection”,google 不会对其编制索引。