305748691 发表于 2015-8-25 22:02:14

ci3.0去不掉index.php

apache已经开启了伪静态在index.php的平行目录下创建了.htaccess   里面是RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1

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

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


305748691 发表于 2015-8-25 22:02:51

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1

smallerpig 发表于 2015-8-26 10:31:22

http://localhost/c3/index.php/home/index
你的这个地址说明你想访问的是c3目录下的ci程序.
所以要将.htaccess的最后一行改成RewriteRule ^(.*)$ /c3/index.php/$1

醒著做夢 发表于 2015-9-16 17:51:02

重启阿怕齊了没有??
页: [1]
查看完整版本: ci3.0去不掉index.php