Magento has the ability to run multiple stores from the same database. After adding the new store from System -> Manage Store, what is the correct code to add to the htaccess file to make Magento automatically load the new store?

  • RewriteCond %{HTTP_HOST} ^oldstore.com
    RewriteRule ^ – [E=MAGE_RUN_CODE:yourOldStoreCode]
    RewriteRule ^ – [E=MAGE_RUN_TYPE:website]

  • RewriteCond %{HTTP_HOST} ^newstore.com
    RewriteRule ^ – [E=MAGE_RUN_CODE:yourNewStoreCode]
    RewriteRule ^ – [E=MAGE_RUN_TYPE:website]

  • RewriteCond %{HTTP_HOST} ^newstore.com
    RewriteRule ^ – [E=MAGE_RUN_CODE:yourStoreCode]
    RewriteRule ^ – [E=MAGE_RUN_TYPE:website]

  • RewriteCond %{HTTP_HOST} ^newstore.com
    RewriteRule ^ – [E=MAGE_RUN_CODE:yourNewStoreCode]
    RewriteRule ^ – [E=MAGE_RUN_TYPE:website]

Второй и четвёртый варианты одинаковы, пиздец…