Magento Forum

   
Multi sites with multi languages / same language code
 
kuassius
Jr. Member
 
Total Posts:  11
Joined:  2012-09-21
 

Hi,

I setup htaccess to have 2 websites on the same installation

SetEnvIf Host mywebsite1.com MAGE_RUN_CODE=base
SetEnvIf Host mywebsite1
.com MAGE_RUN_TYPE=website

SetEnvIf Host mywebsite2
.com MAGE_RUN_CODE=website2
SetEnvIf Host mywebsite2
.com MAGE_RUN_TYPE=website

Each website has 2 store views for each language, ie: english and spanish for each website

Then i changed the base link url for each store view scope

Scopes:

http://mywebsite1.com/en [english store]
http://mywebsite1.com/es [spanish store]

http://mywebsite2.com/en ...
http://mywebsite2.com/es ...

If i set NO on Configuration > General > Web > Use web server rewrites, this works, but shows links like

http://mywebsite1.com/en/index.php/customer/.... 

If i set YES, then index.php disappear, as i desire, but links do not work.

I want to get,

http://mywebsite1.com/en/customer/.... 
http://mywebsite2.com/en/customer/.... 

How can i do this?, please.

 
Magento Community Magento Community
Magento Community
Magento Community
 
sumantechno
Guru
 
Avatar
Total Posts:  478
Joined:  2010-03-09
Bangalore
 

Did you enabled “mod_rewrite\” in apache.

 
Magento Community Magento Community
Magento Community
Magento Community
 
kuassius
Jr. Member
 
Total Posts:  11
Joined:  2012-09-21
 

Yes

Has anyone tried something similar? please

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top