当路由 url 以如下变量开头时,我在 codeigniter 路由上遇到问题 -
$route['(:any)/(:any)'] = "home/index/0/N/DealsAmount/ASC/$1/$2";
当我通过 url 传递值时,我可以配置其他路由 url。示例:以下内容完美运行
$route['About-Us/Team'] = "aboutus/team";
$route['About-us/Jobs'] = "aboutus/jobs";
$route['About-Us/FAQ'] = "aboutus/faq";
但是我使用这个 url 使用如下的变量——
$route['About-Us/Team/(:any)'] = "aboutus/team/$1";
$route['About-Us/Team/(:any)/(:any)'] = "aboutus/team/$1/$2";
$route['About-us/Jobs/(:any)'] = "aboutus/jobs/$1";
$route['About-Us/FAQ/(:num)'] = "aboutus/faq/$1";
然后它重定向到主页,这意味着这个路由在这里不起作用 $route['(:any)/(:any)'] 正在工作 我怎么能路由这些类型的 url 你能告诉我吗?