As you know, displaying requests to controllers is
http://your.domain/index.php/controller/method/arg1/../argn
whereas any request for which segments are specified controller/method/argsis routed to the controller by default.
The default controller is defined in application/config/routes.php, and you will need to change it as follows:
$route['default_controller'] = "my_default_controller";
where my_default_controller, obviously, is the controller that you have to configure, and in it you install:
public function index()
{
$this->load->helper('url');
redirect('cnst/#/mapboard');
}
, :
public function index()
{
if ($this->input->server('Request_uri') == '/' and $this->input->server('Http_host') == 'my-host')
{
$this->load->helper('url');
redirect('cnst/#/mapboard');
}
}
routes.php:
if ($_SERVER['REQUEST_URI']) == '/' and isset($_SERVER['HTTP_HOST']) and $_SERVER['HTTP_HOST'] == 'my-host')
{
$route['default_controller'] = 'my_special_controller';
}
else
{
$route['default_controller'] = 'my_normal_controller';
}
.