seo - 如何在shopify中替换url产品
问题描述
可以这样做,将 shopify 中的 url 产品而不是 ?variant 替换为 seo 友好路径。我的意思是:有 2 件蓝色和白色的 T 恤。在 shopify 中,它们显示为 https://site/collections/tshirts/products/brand?variant=01234567891 蓝色 https://site/collections/tshirts/products/brand?variant=01234567892 白色,
我需要 https://site/collections/tshirts/products/brand/blue
https://site/collections/tshirts/products/brand/white
解决方案
Shopify 具有无法修改的固定 URL 结构。
这意味着您不能以任何方式或超出受支持标准的形式重写 URL,并且您的问题中描述的 URL 不受支持。
实现此 URL 的唯一方法是使用 Shopify 中的 301 重定向页面将您想要的 URL 重定向到其 Shopify 等效项。
推荐阅读
- javascript - 如何使此日历正确关闭?
- c# - WPF 按任意按钮继续下一页
- machine-learning - 如何查看一个pytorch模型的参数?
- c# - dotnet cli - 代码覆盖运行中未使用指定的 .runsettings 文件
- c# - 使用 ADO.NET 的只读查询
- sql - Cypher 是否具有 Group By 之类的功能?
- linux - 将 NA 替换为来自非常大的文本文件的相应列均值
- r - 如何计算下划线的数量并仅在中间分割字符串?
- css - 我有一个奇怪的 CSS 问题:我的页面内容填充了页面高度 100%
- google-chrome-extension - 单击页面操作时会出现 chrome 扩展菜单,而不是运行该操作