CI框架取消index.php

首先看文档:

http://codeigniter.org.cn/user_guide/general/urls.html#url-index-php

大致意思是,先Apache开启rewrite,再index.php同级目录下创建一个.htaccess文件

设置好后还是不起作用!!!!

 

最后在帖子中看到:

http://codeigniter.org.cn/forums/thread-10804-1-1.html

http.conf 中有 3 处 AllowOverride None  需改为 AllowOverride All

解决!

posted @ 2017-02-28 15:04  pthlp  阅读(326)  评论(0编辑  收藏  举报