Codeigniter url issues in routes.php
My fornt end app has MVC and HMVC backend. I have a problem with backend urls. I define all my external urls in route.php. (Not backend)
like this
$route['(.+)/(.+)/(.+)'] = "homes/abc/$1";
But it affects my backend working (passing parameter 3)
Any solution for this
+3
robins
source
to share
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
Pawnesh kumar
source
to share