【问题标题】:How to remove only sub category URL from magento如何从 magento 中仅删除子类别 URL
【发布时间】:2022-01-07 18:14:42
【问题描述】:

我正在为我的电子商务网站使用 Magento

我当前的 URL 结构是:

example.com/parent-category/sub-category/page

我希望将 URL 的解决方案更改为:

example.com/parent-category/page

我只想从 URL 中删除子类别

【问题讨论】:

  • 我投票结束了这个问题,因为它不是一个编程问题,而且它在 Stack Overflow 上是题外话。有关 Magento 的非编程问题应在 Magento 上提问。请在此处删除您的问题并在此处重新提问。

标签: magento url-rewriting url-modification


【解决方案1】:

我们可以通过 URL Rewrites 来配置它

  1. 转到 Magento 2 管理员 -> 营销 -> SEO 和搜索 -> URL 重写

  2. 通过搜索请求路径列查找路径。

  3. 移除缓存 PHP bin/magento cache:clean.

  4. 刷新前端,点击主菜单类别即可看到配置的路径。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2016-08-11
    • 1970-01-01
    • 1970-01-01
    • 2014-08-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多