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
127.0.0.1/magento/magento2
wheremagento2
is the created subdirectory. copied
index.php
andhtaccess
from domain into created subdirectory (magento2).Then changed
$mageFilename = MAGENTO_ROOT . '/app/Mage.php';
to$mageFilename = MAGENTO_ROOT . '/../app/Mage.php';
in index.phpThen inserted
SetEnvIf Host .*base.* MAGE_RUN_CODE="base";
SetEnvIf Host .*magento_site_2.* MAGE_RUN_TYPE="leap_in_en"
where
leap_in_en
is 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
127.0.0.1/magento/magento2
.Now when I enter the url
127.0.0.1/magento/magento2
in 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?