Magento删除商店代码以获取默认商店视图 [英] Magento remove store code for default store view
问题描述
我有Magento多语言商店,我需要将商店代码添加到url.在此路径System > Configuration > Web > Url Option > Add Store Code to Urls
中,我已经打开ON
,然后在url中看到的是site.com/en(默认),site.com/br(巴西).
I've Magento multilanguage store and I need to add store code to url. In this path System > Configuration > Web > Url Option > Add Store Code to Urls
I've turn ON
, then I see in url as such site.com/en (default), site.com/br (brazillian).
如何在默认的site.com/en中删除EN并获取没有EN路径的默认商店site.com?
How I can remove EN in default site.com/en and get for default store site.com without EN path??
推荐答案
我在GitHub上提供了一个新扩展,该扩展允许您从URL中隐藏默认商店代码.
I have made a new extension available on GitHub that allows you to hide the default store code from URLs.
此处的更多信息: https://github.com/jreinke/magento -hide-default-store-code
这篇关于Magento删除商店代码以获取默认商店视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!