Today, I want to creat a new Website (Multisite - Subfolder method) for my Magento Page. (I'm working on a running Server).
What I have done:
I Created a new Root - Subcategory (store2)
I created a new Webstide in Magento/System/Configuration/Manage Stores (I'm working on a running Server):
Website -> name: mystore2 , code: mystore2
Store -> name: Main Store , ROOT Category: store2
Store View -> name: English , code: mystore2_en ,Status: enabled
I created Subfolders on my Root Server --> name: en
Changed URL Secure & Unsecure:
BASE URL: http://mydomain.at/en/
- I copied index.php and .htaccess to my subfolder
Changed Index.php Codes --- My Codes:
$mageFilename = MAGENTO_ROOT . 'app/Mage.php'; $maintenanceFile = 'maintenance.flag';
$compilerConfig = MAGENTO_ROOT . 'includes/config.php'; if (file_exists($compilerConfig)) { include $compilerConfig;
- /* 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('mystore2', 'website');
Now, I got a blank Page... Hope anyone can help me!