php - Route exclude two word in codeigniter -
i want route urls exclude 'admin' & 'login' page/index
in codeigniter.
i tried: $route['([^/(?!admin)|(?!login)]+)/?'] = "page/index/$1";
not working. help me.
try this
$route['admin/(:any)'] = "your admin class/$1"; $route['login/(:any)'] = "your login class/$1"; $route['(:any)'] = "page/index";
php codeigniter
No comments:
Post a Comment