-
- Danielc1234

-
Total Posts: 165
Joined: 2008-01-09
Miami, FL - United States
|
If I am doing a multipal site install and want all the sites to revert to www, does magento allow for .htaccess files for each site within a sub directory? I am changing the sites path in the index.php like below and want all sites to resolve to www. I already set it in the admin, but the search engines has already indexed us without the www. Any Ideas?
$host = explode(’:’, $_SERVER[’HTTP_HOST’]);
switch ($host[0])
{
case (’site1.cc’):
case (’www.site1.cc’):
$store = ‘site1’;
break;
case (’site2.cc’):
case (’www.site2.cc’):
$store = ‘site2’;
break;
case (’site3.cc’):
case (’www.site3.cc’):
$store = ‘site3’;
break;
default:
$store = ‘’;
}
|