Codeigniter, domain to a certain area of the site
snippet in htaccess

Codeigniter, domain to a certain area of the site

user6858

if ($_SERVER['HTTP_HOST']=="www.domain2.com") {
    $route['default_controller'] = "area2"; 
}