现在我有一些在文件CI routes.php
中路由的规则:
$route['^fr/(.+)$'] = "$1";
$route['^en/(.+)$'] = "$1";
当我使用URL作为:
时,它可以正常工作http://test.com/en/news
但不起作用:
http://test.com/en/news/3
或
http://test.com/en/news/4/1/3/any
有新闻路由后:
// NEWS
$route['news/search'] = "news/search";
$route['news/(:num)'] = "news/getNew/$1";
$route['news/category/(:num)/(:any)'] = "news/filter/$1";
$route['news/category/(:num)'] = "news/filter/$1";