Reply to comment

Adrian's picture
Adrian (visitor) - Mon, 30/08/2010 - 10:17:

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

Reply

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account associated with the e-mail address you provide, it will be used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <p> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options