Blog Categories:
New Blogs
Cool!
Blog ID : 147661


In Magento you can connect the domain name and Store View through the index.php file. This file loads all Magento files and subsequently starts the Website. Look for the following line in PHP:
Mage::run();

Replace this line with the following:

switch($_SERVER['HTTP_HOST']) {
case ‘site1.com’:
case ‘www.site1.com’:
$mageRunCode = ‘site1_com’;
$mageRunType = ‘website’;
Mage::run($mageRunCode, $mageRunType);
break;
case ‘site2.com’:
case ‘www.site2.com’:
$mageRunCode = ‘site2_com’;
$mageRunType = ‘website’;
Mage::run($mageRunCode, $mageRunType);
break;
}

Category : Business
Tags : magento themes, magento extension
URL : http://expertsofttechsolution.com/blog/connecting-domains-in-magento/
Partner Blog: No
Rec. URL :
Hits : 234
Date Added : 12-12-2014