Codeigniter url issues in routes.php
1 answer
Try adding a route for the admin url before
$route['(.+)/(.+)/(.+)'] = "homes/abc/$1";
like
$route['admin/(:any)'] = 'admin/index/$1';
$route['(.+)/(.+)/(.+)'] = "homes/abc/$1";
or if you want to do some hacks then:
if(strpos($_SERVER["REQUEST_URI"],'admin/') === false){
$route['(.+)/(.+)/(.+)'] = "homes/abc/$1";
}
0
source to share