Build, maintain and make your Magento website Evolve
Alex, thanks a lot, your solution works great and is the simplest.
I just added this switch before the assignment for $mageRunCode and $mageRunType:
switch ($_SERVER['HTTP_HOST']) { case "www.myfirstdomain.com": $_SERVER['MAGE_RUN_CODE'] = "myfirstwebsite"; $_SERVER['MAGE_RUN_TYPE'] = "website"; break; case "www.myseconddomain.com": $_SERVER['MAGE_RUN_CODE'] = "mysecondwebsite"; $_SERVER['MAGE_RUN_TYPE'] = "website"; break; //etc }
Regards,
Adrian
More information about formatting options
Search:
Magento is one of the most innovative and complete e-commerce solutions to implement new generation e-Stores.
Alex, thanks a lot, your solution works great and is the simplest.
I just added this switch before the assignment for $mageRunCode and $mageRunType:
switch ($_SERVER['HTTP_HOST']) {
case "www.myfirstdomain.com":
$_SERVER['MAGE_RUN_CODE'] = "myfirstwebsite";
$_SERVER['MAGE_RUN_TYPE'] = "website";
break;
case "www.myseconddomain.com":
$_SERVER['MAGE_RUN_CODE'] = "mysecondwebsite";
$_SERVER['MAGE_RUN_TYPE'] = "website";
break;
//etc
}
Regards,
Adrian