deivisonarthur
4/17/2013 - 5:13 PM

http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/navigation/multiple-website-setup

$host = explode(':', $_SERVER['HTTP_HOST']);
switch ($host[0]) {
case 'german.example.com':
  $store = 'german';
  break;
 
default:
  $store = 'base';
}
 
Mage::run($store);