Setup Multistores in Magento with stores in subfolders

To setup mutlistores in subfolders within your Magento install:

1. Create the new stores and websites within the magento backend

2. set CMS pages as the home page for each store

3. Copy index.php into subfolders and .htaccess

4. set the base URLs for each store to be the subfolders with a trailing slash – Need to set the directories for skin and JS too as it cant have the subfolder name in

5. chaneg the 2 lines like this: $compilerConfig = MAGENTO_ROOT . ‘/includes/config.php’;


$compilerConfig = ‘../includes/config.php’;

Then comment out these lines:

/* Store or website code */
//$mageRunCode = isset($_SERVER[‘MAGE_RUN_CODE’]) ? $_SERVER[‘MAGE_RUN_CODE’] : ‘fr’;

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

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

and add this one:
Mage::run(‘fr’, ‘website’); //(for me: Mage::run(‘kbc’, ‘website’);)