We sacrifice by not doing any other technology, so that you get the best of Magento.

We sacrifice by not doing any other technology, so that you get the best of Magento.

    Open index.php file and replace the following code with it.

    Then change domain, website, store or store view code.

    <?php
    /**
     * Application entry point
     *
     * Example - run a particular store or website:
     * --------------------------------------------
     * require __DIR__ . '/app/bootstrap.php';
     * $params = $_SERVER;
     * $params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = 'website2';
     * $params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = 'website';
     * $bootstrap = MagentoFrameworkAppBootstrap::create(BP, $params);
     * /** @var MagentoFrameworkAppHttp $app */
     * $app = $bootstrap->createApplication('MagentoFrameworkAppHttp');
     * $bootstrap->run($app);
     * --------------------------------------------
     *
     * Copyright © 2016 Magento. All rights reserved.
     * See COPYING.txt for license details.
     */
     
    try {
        require __DIR__ . '/app/bootstrap.php';
    } catch (Exception $e) {
        echo <<<HTML
    <div style="font:12px/1.35em arial, helvetica, sans-serif;">
        <div style="margin:0 0 25px 0; border-bottom:1px solid #ccc;">
            <h3 style="margin:0;font-size:1.7em;font-weight:normal;text-transform:none;text-align:left;color:#2f2f2f;">
            Autoload error</h3>
        </div>
        <p>{$e->getMessage()}</p>
    </div>
    HTML;
        exit(1);
    }
    
    $params = $_SERVER;
    $domain2store = array(
    	'ww.xyx.nl'=> array('code'=>'nl','type'=>'store'), 
    	'www.xyz.de'=> array('code'=>'de','type'=>'store'), 
    	'www.xyz.be'=> array('code'=>'be','type'=>'website')
    );
    $params[MagentoStoreModelStoreManager::PARAM_RUN_CODE] = isset($domain2store['code']) ? $domain2store['code'] : 'nl';
    $params[MagentoStoreModelStoreManager::PARAM_RUN_TYPE] = isset($domain2store['type']) ? $store['domain2store'] : 'store';
    $bootstrap = MagentoFrameworkAppBootstrap::create(BP, $params);
    $app = $bootstrap->createApplication('MagentoFrameworkAppHttp');
    $bootstrap->run($app);

     

    field_5bfb909c5ccae

      Get a Free Quote