Answer by Mitchell McKenna for Codeigniter Routing not equal to pattern

September 30 2010, 4:49am

Routes will run in the order they are defined. So in your routes file, put the routes for other controllers you still want to work above your catch-all for usernames:

$route['default_controller'] = 'home'; //so root url still works $route['accounts'] = "accounts"; $route['accounts/(:any)'] = "accounts/$1"; ... $route['(:any)'] = "controller/method/show/$1";