Reply to comment

Alex's picture
Alex (visitor) - Wed, 28/04/2010 - 03:35:

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.

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