I am working on Magento-2.2.4.
So, my url is as follows : http://puppetkart.com/ and on Luma theme.
My requirement is as follows :
I have created second website and store and store view for this newly created website in admin panel. My new website is http://vizag.puppetkart.com/ And added this url at Base url section for this new website.
I have created sub domain and managed the DNS also. Edited the
index.php
which is in new folder
Replaced:
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $_SERVER);
/** @var \Magento\Framework\App\Http $app */
$app = $bootstrap->createApplication('Magento\Framework\App\Http');
$bootstrap->run($app);
With:
$params = $_SERVER;
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = 'vizag'; //Webite code as same in admin panel
$params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = 'website';
$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params);
/** @var \Magento\Framework\App\Http $app */
$app = $bootstrap->createApplication('Magento\Framework\App\Http');
$bootstrap->run($app);
- When i open my new website http://vizag.puppetkart.com/, CSS and js are not calling properly.
Can anyone please guide me to create multi websites.