I\'ve a problem with routes and controller. I\'ve got 2 types of controller: first type is used to manage the webpages, second type is used for cms and I prefer to put them
Put the admin route before the any route:
admin
any
$route['admin/(:any)'] = "admin/$1"; $route['(:any)'] = "site/$1";
otherwise it will always hit any and redirect to site. You have to give it a chance to match admin before matching any.
site