Build, maintain and make your Magento website Evolve
Here another simple solution:
if ($_SERVER['HTTP_HOST'] == "someotherdomain.com"){ $_SERVER["MAGE_RUN_CODE"] = "yourcode"; $_SERVER["MAGE_RUN_TYPE"] = "website"; }
before:
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : '';
Note: I set up the second store as website - not as store.
More information about formatting options
Search:
Magento is one of the most innovative and complete e-commerce solutions to implement new generation e-Stores.
Here another simple solution:
if ($_SERVER['HTTP_HOST'] == "someotherdomain.com"){$_SERVER["MAGE_RUN_CODE"] = "yourcode";
$_SERVER["MAGE_RUN_TYPE"] = "website";
}
before:
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : '';Note: I set up the second store as website - not as store.