I have the following route in routes.php:
$route['xxxxx/(:any)'] = 'Order/index/$1';
And the following index in the controller Order:
public function index(){
switch( $this->uri->segment(2)){
case $this->step2:
$this->motivation();
break;
case $this->step3:
$this->about();
break;
case $this->status:
$this->status();
break;
case 'post':
$this->post();
break;
case 'teste':
$this->teste();
break;
default:
$this->register();
break;
}
}
But when I try to enter this route by typing localhost / xxxxx for example, it returns me error 404 Page Not Found .