【发布时间】:2012-11-08 16:28:09
【问题描述】:
如何让 index.php 处理请求
例如
如果我在浏览器中输入 SEF
http://localhost/friends
http://localhost/me
重写为
http://localhost/index.php/friends
http://localhost/index.php/me
所以我可以从 $_REQUEST['PATH_lNFO'] 访问朋友或我
我已经修改并允许在 apache 中为根目录设置所有指令。
需要一个 .htaccess 文件,
【问题讨论】:
标签: apache .htaccess mod-rewrite