Creating a Magento multidomain website

So you have a Magento webshop, but you would like to add additional Magento subwebshops linked to your webshop? Than the Magento Multi-store feature could be something for you.

First you’ll have to add a store or website. Most of the time a store is good enough since it uses the same client database. After adding a store, add a storeview and remember the code of the storeview.

After that make sure the domains are pointed in the same webhosting package or linked. In order for Magento to know what domain has to be linked to a store code, add the following code in .htaccess:

RewriteEngine on

RewriteCond %{HTTP_HOST} ^(.*)domainsub.com
RewriteRule ^ – [E=MAGE_RUN_CODE:substore_en]

In this case the domain: domainsub.com will be linked to the storeview: substore_en . After this, make sure the storeview is set up correctly in Magento. Go to: System > Configuration > Web and edit the url’s (insert domainsub.com).

After that, refresh cache. Everything should work now.

Leave a Comment

Your email address will not be published. Required fields are marked *

en_USEnglish
Scroll to Top