I'm trying to create new store & website which will run at
http://127.0.0.1/lapis/in/. Here is the process I've followed.
1. Created new store, website and store view named
Indian website &
Indian Store view respectively with website code in.
Stores->Configuration->Web changed website URL to
3. Assigned category at products->Categories after switching store view to Indian Store view.
- Created folder named in inside root magento installation with 2 files index.php and .htaccess with following code
$params = $_SERVER; $params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = 'in'; $params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'website'; $bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params); $app = $bootstrap->createApplication('..\Magento\Framework\App\Http'); $bootstrap->run($app);
- Copied .htaccess root file inside
indirectory and added
Now when I'm navigating to
http://127.0.0.1/lapis/, it works fine but
http://127.0.0.1/lapis/in/throws 500 server error. I'm missing something here or my process of creating new website is wrong?