简体   繁体   中英

Magento store code in URL only for one domain

I have a magento setup with 2 domains, one of them having 3 languages. For this one I need the store view to be displayed in the url, however for the first one there should be no store code there.

Is it possible to configure Magento (or htaccess) so that the store code is not displayed for one of the domains?

The problem is that for Magento CE 1.9 this setting is a global one.

Current URL status:

domain 1: domain1.com/base

domain 2: domain2.com/en domain2.com/fr domain2.com/de

Desired URL status:

domain 1: domain1.com/ where the URL will be like this for a category domain1.com/catname

domain 2: domain2.com/en domain2.com/fr domain2.com/de

As you've noticed there isn't a setting for what you want. You'll have to go through each store view and set the base URL to http://domain2.com/en/ , http://domain2.com/fr/ and so on. Then set the JS/CSS/media URLs to http://domain2.com/ so they still work.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM