I have a CodeIgniter/Bonfire application with routes defined.
The main URL works fine but the subpages are not redirected.
When I enter the URL:
http://xtrack.local/news/1393/litany-look
I got error PAGE NOT FOUND and looks like it cannot find the base_url:
Not Found
The requested URL /news/1393/litany-look was not found on this server.
Here is my routes file in application/config/routes.php :
$route['news/(:any)'] = 'home/news/$1';
And my config file define my base_url :
switch (ENVIRONMENT)
{
case 'development':
$config['base_url'] = 'http://xtrack.local';
break;
default:
exit('The application environment is not set correctly.');
}
EDIT1 : I found a way to access my news page through the index.php page:
http://xtrack.local/index.php/news/1393/litany-look