用户
 找回密码
 入住 CI 中国社区
搜索
查看: 1554|回复: 1
收起左侧

[HELP] 取消index.php的.htaccess文件为何无效?

[复制链接]
发表于 2015-10-5 18:27:10 | 显示全部楼层 |阅读模式
看手册上是创建.htaccess文件 然后写入
RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ index.php/$1 [L]

我用的是windows下的apache
rewrite应该是这行打开吧:LoadModule rewrite_module modules/mod_rewrite.so

虚拟主机放在测试端口8002下面

访问http://localhost:8002/manage/user 是404
访问http://localhost:8002/index.php/manage/user就是正常的

求助

 楼主| 发表于 2015-10-5 18:28:34 | 显示全部楼层
.htaccess文件放在网站根目录下面

本版积分规则