One of the very useful and convenient features of Magento is the ability to create a multi-store setup. Multi-store setup is simply a way of being able to setup a second domain using the same installation as that of the first domain and yet share your product catalog and code.
For example, let’s say we have a domain “www.clothing.com” . You have installed Magento for this domain and also setup the store, storefront and updates for all your product catalogs. All well and good here.
Now, your domain being an online store for a wide variety of clothing, you probably will want to reduce the clutter and provide your customers an option for a smoother experience going through your products. Let’s say, you want to do this by creating sections in the store as Clothing for Men and Clothing for Women while still retaining the original domain and store. Let’s call these domains “www.clothingformen.com” & “www.clothingforwomen.com”
Ideally, you will need to build a new website, a store and product catalog for each of them from scratch within their own independent Magento installation. Just like it sounds, it’s quiet tedious and this is where the usability of a multi-store setup comes in. Using a multi-store you can simply use the same installation, store and product catalog as that of the main domain for the new domains.
This guide will help you through to setup the multi-store on a Plesk 12.5 server along with Magento 188.8.131.52-40.
Assuming you already have setup the main domain along with its store (store 1) we need to set up the new domains along with its stores now.
Step 1 : Log in to the Magento Administrative interface and go to System > Manage Stores
Step 2 : Now, we need to add your new website name, store name and store view name. While creating the stores, you have an option to select the ‘Root Category’ option which will use the same category structure as the main domain. Or else you can create a new category by going to Catalog > Manage Categories and create a new root category.
Step 3 : Now, we need to assign the new domains for each store. Go to System > Configuration > GENERAL > Web and then select your second store from the ‘Current Configuration Scope’ of the left hand side drop down box.
Select the newly created domain, open “Unsecure” from the right hand side and in the “Base URL” field, enter the new domain name, for eg: www.clothingformen.com/. Repeat the same for the “Secure” section too.
Step 4 : By going to System > Configuration > GENERAL > Design, select the store from the ‘Current configuration scope’ and open up ‘Package’, you can set the theme for the domain from here.
Now, you need to login into your Plesk panel and simply create the second domain as an Alias for the main domain, in this case that would be “www.clothingformen.com” as an Alias for “www.clothing.com”
Once that is done, open up the “index.php” file and edit the following section as follows:
You will need to replace the “store” with the store name we had given earlier. Repeat the same for the third domain that is “www.clothingforwomen.com”. Now, you will be able to manage all the 3 domains from the same control panel and share the same stores.
About the Author: