请教一个自定义路由的问题!!!谢谢!
我希望当用户输入abc.com/10065
就执行以下地址
abc.com/profile/display/10065
我在路由配置文件中定义:
$route['(profile)/(display)/(:any)'] = '$3';
结果是我得到的都是404页面,不知道这里应该怎么设置。
请教下各位,感谢! 为什么不考虑下 apache的 url rewrite呢? $route['(:num)'] = "profile/display/$1"; 这样写对不对? 回复 3# qi_ruo
依旧还是404无奈了 回复 2# phpox
我正在考虑放在apache这边处理了。。。。谢谢 :o rewrite了没? $route['(:num)'] = "profile/display/$1";
应该这样子写吧?
我之前都是这么干的 可以的!
页:
[1]