Step 3: Store Configuration in the Server
1 min readStep 3: Store Configuration in the Server
- In this tutorial we are going to see a second website at www.your_domain.com/magento/magento2. We are going to access the magento directory on our server and create a sub-directory folder magento2.
- Copy the index.php file as well as the htaccess file from the magento folder over to the magento2 folder. In case you are using a different domain – copy these files to the root folder or your other domain).
- Open your index.php file and look for the following line
“$mageFilename = ‘app/Mage.php’;” - Change it to
$mageFilename = ‘../app/Mage.php’; - Save the changes
- Open up the copied htaccess file.
- Add the following to the end of it
SetEnvIf Host .*base.* MAGE_RUN_CODE=”base”;
SetEnvIf Host .*magento_site_2.* MAGE_RUN_TYPE=”magento2″;where magento2 is the website code taken from Step2 point 2 of this tutorial.
- Save the changes.
- In your Magento admin go to System -> Configuration -> General.