How to run mobile website with different domain ?

Hi All,

What is the best way to configure website( on mobile with prefix “m” i.e and there are some changes in mobile templates, that is when site opens on desktop the domain should be but when we opens on mobile the domain must be with different design
of PDP and PLP templates

In addition also to configure the multi-language with multi-currency.

1: Make a pointer domain with same shared directory
2: In index.php

$params = $_SERVER;

$customstore = array( ‘’=>‘mobilestoreview’// storeviewcode ); if(isset($customstore[$_SERVER[‘HTTP_HOST’]])){ $code = $customstore[$_SERVER[‘HTTP_HOST’]]; }

$params[\Magento\Store\Model\StoreManager::PARAM_RUN_CODE] = isset($code) ? $code : ‘’; $params[\Magento\Store\Model\StoreManager::PARAM_RUN_TYPE] = ‘store’;

$bootstrap = \Magento\Framework\App\Bootstrap::create(BP, $params); $app = $bootstrap->createApplication(‘Magento\Framework\App\Http’);


reindex, clear cache, run in another browser