How to Setup Plesk Multi Store Setup in Magento? Applications

We have setup the main domain in store (store 1) and we need to setup new domains along with its stores.

The following steps shows how to setup domains along with its stores.

Step 1: Log in to the Magento Administrative interface and go to System > Manage Stores.

Step 2: Add your new website name, store name and store view name. While creating the stores, you have an option to select the ‘Category’ option which will use the same category structure as the main domain or you can create a new category by going to Catalog > Manage Categories and create a new root category.

Step 3: 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.xyz.com/. Repeat the same for the “Secure” section too.

Step 4: Click on 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.xyz.com” as an Alias for “www.xyz.com”

While adding, you would see that there is option to select  Mail , DNS & Redirect option we can choose as required.

Once the above steps is done, open up the “index.php” file and edit the following section as follows:

umask(0);if ($_SERVER[‘HTTP_HOST’] == “xyz.com” || $_SERVER[‘HTTP_HOST’] == “www.xyz.com”){

$_SERVER[“MAGE_RUN_CODE”] = “website_code”;

$_SERVER[“MAGE_RUN_TYPE”] = “website”;

}/* Store or website code */

$mageRunCode = isset($_SERVER[‘MAGE_RUN_CODE’]) ? $_SERVER[‘MAGE_RUN_CODE’] : ”;/* Run store or run website */

$mageRunType = isset($_SERVER[‘MAGE_RUN_TYPE’]) ? $_SERVER[‘MAGE_RUN_TYPE’] : ‘store’;Mage::run($mageRunCode, $mageRunType);

Replace the “store” with the store name we had given earlier. Repeat the same for the third domain that is “www.xyz.com”. Now you will be able to manage the three stores and the three domains from the same control panel.

At Velan, our server support engineers can help you setup up multiple stores in Mangeto. We troubleshoot problems like these for our clients every day. If you are interested in our service, please fill the Quick connect form to get in touch with us

Credentials

Quick Connect With Us


    captcha
    reload