Reply to comment

conec's picture
conec (visitor) - Sat, 06/03/2010 - 21:50:

Hi, I am on Magento 1.4.0.1

Thanks for this post, I almost lost my hairs on that.

I made that on index.php:

$mageRunCode = isset($_SERVER[’MAGE_RUN_CODE’]) ? $_SERVER[’MAGE_RUN_CODE’] : ‘newbesite’;
$mageRunType = isset($_SERVER[’MAGE_RUN_TYPE’]) ? $_SERVER[’MAGE_RUN_TYPE’] : ‘website’;

And turn “Redirect to Base URL if requested URL doesn’t match it” to “NO” in the admin

It works for me to get to my “newwebsite”, but now I can get to my “base” website! or to other websites!
So how and what to configure for multi websites?

Regards.

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