Codeigniter Coginter清除Url
我用的是Coginter 我想清理url 我有网址 我想要这个网址 在路由文件中我编写代码Codeigniter Coginter清除Url,codeigniter,Codeigniter,我用的是Coginter 我想清理url 我有网址 我想要这个网址 在路由文件中我编写代码 $route['categories/(:any)'] = "$1"; 但这是行不通的 有人知道吗 谢谢给你 当前: 期望的: 然后在application/config/routes.php上 添加此路由规则 //如果class=newarticle,method=categories,3rd seg=get_categories,4th(:any)通配符 $route['newarticle/cat
$route['categories/(:any)'] = "$1";
但这是行不通的
有人知道吗
谢谢给你
当前:
期望的:
然后在application/config/routes.php上
添加此路由规则
//如果class=newarticle,method=categories,3rd seg=get_categories,4th(:any)通配符
$route['newarticle/categories/get_categories/:any']=“newarticle/electronics”
包含段newaricle/categories/get_categories的URL将重新映射到类newarticle和method electronics