我有这个:
$route['(:any)'] = "front/$1"; // front
$route['admin/(:any)'] = "admin/$1"; // admin
我想制作这样的网址:
mysite.com/en/somecontroller/somemethod
mysite.com/ru/somecontroller/somemethod
etc...
我猜是这样的:
$route['(:any)'] = "front/$1"; // front
$route['(:any)/(:any)'] = "front/$2";
$route['admin/(:any)'] = "admin/$1"; // admin
$route['(:any)/admin/(:any)'] = "admin/$2";
但是当第一段是语言时我会出错,CI认为那是一个控制器