Magento News
Media images not loading on second website
by Dx3Webs (Posted Sun, 14 Aug 2011 23:37:03 GMT)
much easier to use a domain alias and do all the work in index.php
- Code:
if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
Mage::setIsDeveloperMode(true);
}#ini_set('display_errors', 1);
umask(0);
if ($_SERVER['HTTP_HOST'] == "domain.co.uk" || $_SERVER['HTTP_HOST'] == "www.domain.co.uk"){
$_SERVER["MAGE_RUN_CODE"] = "site1";
$_SERVER["MAGE_RUN_TYPE"] = "website";
}if ($_SERVER['HTTP_HOST'] == "domain2.co.uk" || $_SERVER['HTTP_HOST'] == "www.domain2.co.uk"){
$_SERVER["MAGE_RUN_CODE"] = "site2";
$_SERVER["MAGE_RUN_TYPE"] = "website";
}/* Store or website code */
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : '';/* Run store or run website */
$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'store';Mage::run($mageRunCode, $mageRunType);
http://magento-forum.co.uk/viewtopic.php?f=8&t=839#p2791
Possibly Related Posts:
- Hiring #Magento #Developers at #Ahmedabad location. http://t.co/O5PmfSqi #Magento #PHP #Mysql #Jobs #Ahmedabad
- わかってるよ………… あんたの「鉄球」はツェペリの一族のより上の技術があるんだろ? 安心してるよ
- Magento Upgrade by blugreen http://t.co/ZyH6G2MO #jobs #Freelance
- Looking for #Zend #Developers at #Ahmedabad location. http://t.co/O5PmfSqi #Magento #PHP #Mysql #Jobs #Ahmedabad
- Looking for #Zend #Developers at #Ahmedabad location. http://t.co/xDkodbp4 #Magento #PHP #Mysql #Jobs #Ahmedabad
RSS Feed