我的网址是这样的:路由笨
“http://host.com/site/forum/1/General”
“http://host.com/site/forum/2/Special”
多
我想缩短喜欢的网址低于给定:
“http://host.com/forum/General”
“http://host.com/forum/Special”
以及更多
在我的路线文件,我用下面的设置这是不工作,请为解一看:
$route['forum/General'] = 'site/forum/1/General';
$route['forum/Special'] = 'site/forum/2/Special';
提前感谢!
这是最好的可以使用[.htaccess](http://en.wikipedia.org/wiki/Rewrite_engine) –
它应该工作你有没有添加.htaccess删除您的index.php文件 –