There are two URLs where I want to run my Magento Store with same Magento Installation:
1. http://www.antistaticesd.com
2. http://www.antistaticesd.com/business
First of all, I created a directory name business
under my root on my FTP server:
Then, I created another website in the Magento back end, another store and another store view. Therefore there are two each:
WEBSITE: main website (Code: base)
MAIN WEBSITE STORE: (Root Category: Default Category)
DEFAULT STORE VIEW: (Code: default)
WEBSITE: Business Website (Code: business)
MAIN WEBSITE STORE: (Root Category: Business Store)
DEFAULT STORE VIEW: (Code: business_store_view)
This is the code I added to the .htaccess
file in "business directory":
SetEnvIf Host .*base.* MAGE_RUN_CODE="base";
SetEnvIf Host .*magento_site_2.* MAGE_RUN_TYPE="business";
The file other than .htaccess
is the index.php
that I copied from root folder(public_html
) to "business" directory.
THE PROBLEM IS AS FOLLOWS: