cancel
Showing results for 
Search instead for 
Did you mean: 

Multi store views question

Multi store views question

hello

 

I read LOOOOOTS of threads/posts about multiple stores in Magento talking about domains, subdomains, symlinks, ...

but I don't manage to do what I want

 

what I want:

URL format = [country code].mysite.com/[language code]/...

 

problem:

store view code must be unique so 2 websites can't have a store view with code = "en" if both sites have an english version

 

what I did in Magento:

I configured many websites in Magento admin

each websites' code = [country code] (eg: website "Germany" has code = "de")

each website has only one store

each website has 1-n store view(s) whose codes are [language code] + "_" + [country code] (eg: "Germany" webiste has 2 store views: de_de and en_de)

 

what I did in vhost:

I configured every website vhost

 

<VirtualHost *:80>
ServerName mysite.com
SetEnv MAGE_RUN_TYPE website
SetEnv MAGE_RUN_CODE world
</VirtualHost>

<VirtualHost *:80>
ServerName de.mysite.com
SetEnv MAGE_RUN_TYPE website
SetEnv MAGE_RUN_CODE de
</VirtualHost>

 

with that I can have mysite.com/en/ and de.mysite.com/en_de/ but not de.mysite.com/en/

so, is it possible and how?

 

thanks!

1 REPLY

Re: Multi store views question

up, just in case someone would have an answer