To display different category in different website,
- Created new root category.
- Created new website, store, store view at backend and used that newly created root category in it.
- Then created a subdirectory in domain
magento2is the created subdirectory.
htaccessfrom domain into created subdirectory (magento2).
$mageFilename = MAGENTO_ROOT . '/app/Mage.php';to
$mageFilename = MAGENTO_ROOT . '/../app/Mage.php';in index.php
SetEnvIf Host .*base.* MAGE_RUN_CODE="base";
SetEnvIf Host .*magento_site_2.* MAGE_RUN_TYPE="leap_in_en"
leap_in_enis the unique code code of my store view.
At backend after switching to new website in configuration scope, changed the unsecure and secure url to
Now when I enter the url
127.0.0.1/magento/magento2in the browser. It is displaying the old store with same category not the new root category.
Someone please tell me where have I went wrong or is there any additional thing that I should do?