I have a route in my route.php :
$route['admin/(:any)'] = 'ix/$1';
It routes URI such as localhost/somename/admin/home to localhost/somename/ix/home.php controller.
The problem is if the URI is like this : localhost/somename/admin/blog/updates (nonexistant function), rather than returning 404, it will just run the blog controller construct code.
How do I avoid this? One option is to add the routing to accept only necessary parameters, but is there any other way?
Thanks
admin/blog/updatesshould loadix/blog/updatesbased on your route. This would be looking for ablogfunction in theixcontroller, so I'm not sure where "blog controller construct code" means. - Mike S.