cancel
Showing results for 
Search instead for 
Did you mean: 

Magento 1.9 multistore setup

Magento 1.9 multistore setup

Trying to setup a multistore.

Main domain is gsworkwear.com, second store is aropec.co.uk

I'm using Plesk 12 and have the aropec.co.uk (code:aropec) set-up as a Domain alias for gsworkwear.com (code: base).

I have tried various statements in the htaccess file to route aropec.co.uk to the second store, but nothing seems to work.

 

try 1:
SetEnvIf Host ^www\.aropec\.co\.uk MAGE_RUN_CODE=aropec
SetEnvIf Host ^www\.aropec\.co\.uk MAGE_RUN_TYPE=website
SetEnvIf Host ^aropec\.co\.uk MAGE_RUN_CODE=aropec
SetEnvIf Host ^aropec\.co\.uk MAGE_RUN_TYPE=website

SetEnvIf Host ^www\.gsworkwear\.com MAGE_RUN_CODE=base
SetEnvIf Host ^www\.gsworkwear\.com MAGE_RUN_TYPE=website
SetEnvIf Host ^gsworkwear\.com MAGE_RUN_CODE=base
SetEnvIf Host ^gsworkwear\.com MAGE_RUN_TYPE=website


try 2:
RewriteCond %{HTTP_HOST} www\.aropec\.co\.uk [NC]
RewriteRule .* - [E=MAGE_RUN_CODE:aropec]
RewriteCond %{HTTP_HOST} www\.aropec\.co\.uk [NC]
RewriteRule .* - [E=MAGE_RUN_TYPE:website]

RewriteCond %{HTTP_HOST} www\.gsworkwear\.com [NC]
RewriteRule .* - [E=MAGE_RUN_CODE:base]
RewriteCond %{HTTP_HOST} www\.gsworkwear\.com [NC]
RewriteRule .* - [E=MAGE_RUN_TYPE:website]