I have a basic question regarding to configuring route in Codeigniter. In my application, I can route through $route['default_controller'] = "welcome"; perfectly fine. I can use it to route to different controller than welcome controllers as well. However, it does not allow me to route through any other route expressions apart from the default_controller.
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
$route['test'] = "welcome";
$route['default_controller'] = "welcome";
$route['404_override'] = '';
So as I have mentioned already, it takes me to welcome controller if my URL path is localhost/myproject , but it wouldn't let me navigate to the same controller using localhost/myproject/test. I hope you've understood my question.
Thanks in advance,