gpt4 book ai didi

玛根托 : How to hide the default Store View code from the url

转载 作者:行者123 更新时间:2023-12-02 12:14:01 25 4
gpt4 key购买 nike

该网站有 2 种语言:英语和法语,由 2 个商店 View 表示。法语是默认的。对于我们的 SEO 工作,我们需要以下网址:

  1. 法语 - http://www.domain.com/category/product
  2. 英语 - http://www.domain.com/en/category/product

系统 -> 配置 -> Web -> 将商店代码添加到 URL 是全有或全无设置。我们只需要为默认商店关闭它即可。我在论坛和维基上进行了大量搜索,但没有任何关于这个主题的内容。

请问有什么建议吗?

最佳答案

终于我解决了这个神奇的问题,我希望这可以拯救其他人,这里是详细信息:

1- 下载此页面中存在的 zip : https://github.com/Knectar/Magento-Store-Codes

2-解压文件并将名为“Knectar”的文件夹放入 {app/code/community/} 中,将 Knectar_Storecodes.xml 文件放入 {app/etc/modules}

3- 在后台转到“系统 > 工具 > 编译”,然后单击重建按钮

4-始终在后台进入“系统 > 配置 > Web > URL 选项”并将属性“和默认商店 View ”设置为“否”并保存配置

5-清除您的 magento 缓存并享受您的应用程序:) 。

关于玛根托 : How to hide the default Store View code from the url,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25743822/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com