1

On my website www.antistaticesd.com, I want to make a new store.

There are two root categories:

  1. Default Category for default store on www.antistaticesd.com
  2. Business Store for businesses to purchase business products. I have set up a directory for this www.antistaticesd.com/business

After creating the "business store" root category and "business_store_view" store view, I did the following:

Went to System >> Configuration Selected "business_store_view" from Current Configuration scope to switch to business store configuration. Went to "Web" from left panel. Unchecked the "Use Website [STORE VIEW]" Changed the Secure and Unsecure base URLs to "www.antistaticesd.com/business".

Also added the following lines to my .htaccess file( that is in the root installation of magento):

SetEnvIf Host www\.antistaticesd\.com MAGE_RUN_CODE=default
SetEnvIf Host www\.antistaticesd\.com MAGE_RUN_TYPE=website
SetEnvIf Host ^antistaticesd\.com MAGE_RUN_CODE=default
SetEnvIf Host ^antistaticesd\.com MAGE_RUN_TYPE=website

SetEnvIf Host www\.antistaticesd\.com/business MAGE_RUN_CODE=business_store_view
SetEnvIf Host www\.antistaticesd\.com/business MAGE_RUN_TYPE=store
SetEnvIf Host ^antistaticesd\.com/business MAGE_RUN_CODE=business_store_view
SetEnvIf Host ^antistaticesd\.com/business MAGE_RUN_TYPE=store

Still, I see nothing but an error screen on reindexing and refreshing. Please, Please help!!!!!

2

I don't know if this works when the second store is a subfolder of the main store.
But you can just create the folder business inside the root directory, copy index.php and .htaccess files from the root to the new folder.
Then edit index.php and replace

$mageFilename = MAGENTO_ROOT . '/app/Mage.php';

with

$mageFilename = '../app/Mage.php';

and

Mage::run($mageRunCode, $mageRunType);

with

Mage::run('business_store_view', 'store'); 

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.