I am developing a web application with codeigniter. I have created a folder in controllers with name "Administration". Inside this folder, i have kept all my controllers pertaining to the administration panels.
Now, i want that if any user types the url as www.mywebsite.com/administration, the user should be redirected to the respective controller whatever comes as the next segment after administration. like if user types wwww.mywebsite.com/administration/login, then login controller should be executed. Well this is a pretty obvious thing.
Now what i want is, when someone types anything www.mywebsite.com/anything_else, it should be directed to some other controller by default. I am using following routes setup:
$route['default_controller'] = 'welcome';
$route['404_override'] = '';
$route['administration/(:any)']='administration/$1';
$route['(:any)']='fetch_pages';
Please guide.