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

[HELP] ci3.0去不掉index.php

[复制链接]
发表于 2015-8-25 22:02:14 | 显示全部楼层 |阅读模式
apache已经开启了伪静态  在index.php的平行目录下创建了.htaccess     里面是RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

但是还是不行访问 http://localhost/c3/home/index 就挂了

http://localhost/c3/index.php/home/index 就可以


 楼主| 发表于 2015-8-25 22:02:51 | 显示全部楼层
PHP复制代码
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
复制代码
发表于 2015-8-26 10:31:22 | 显示全部楼层
http://localhost/c3/index.php/home/index
你的这个地址说明你想访问的是c3目录下的ci程序.
所以要将.htaccess的最后一行改成RewriteRule ^(.*)$ /c3/index.php/$1 [L]

点评

赞  发表于 2015-10-21 19:44
发表于 2015-9-16 17:51:02 | 显示全部楼层
重启阿怕齊了没有??

本版积分规则