magento2 - Magento 2 类别网址?
问题描述
我正在尝试直接找到类别的 URL - 我使用 Megamenu,但我已经尝试了我能找到的所有内容,但不断收到 404 错误
对于这个例子,让我们假设我试图获取包含活动产品的“家具”类别的链接,使用 domain.com/my-main-product.html 到产品的直接链接可以正常工作
我试过了
http://example.com/furniture
http://example.com/catalog/furniture
http://example.com/catalog/category/view/id/143
谁能推荐我如何找到它们-我目前的布局是:
Default Category
Furniture
Test Category
我得到的只是“页面不存在”(404)
任何帮助将不胜感激
解决方案
请检查以下路径。
{select category}--> search engine optimization-->url key.
你可以在那里看到网址。当您访问时,您应该附加.html
到 URL。例如,如果值是furniture
你的 URL 应该是这样的
http://example.com/furniture.html
或者
http://example.com/index.php/furniture.html
(如果 mod_rewrite 未启用)
推荐阅读
- reactjs - 使用 React / Redux 时,调度一个仅更改 Redux 状态的操作与实际执行某些任务如何?
- c++ - C++ Unreal Engine 封装委托
- angular - 移动端的离子底部标签和桌面端的侧边菜单
- mongodb - 在 mongo 中查找百分比
- python - Python:减少运行时间?
- r - 在r中的单元格中操作具有多个值的数据
- scala - 编写一个简单的基准测试来测试 scala twirl tempaltes 会出现运行时错误
- bash - 在 bash 或 zsh 命令中使用管道(“|”)作为第一个符号
- discord.py - Discord.py 如何禁止非会员用户
- spinnaker - 在 Kubernetes 上使用 halyard 部署大三角帆