ci3.0去不掉index.php
apache已经开启了伪静态在index.php的平行目录下创建了.htaccess 里面是RewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1
但是还是不行访问 http://localhost/c3/home/index 就挂了
http://localhost/c3/index.php/home/index 就可以
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 http://localhost/c3/index.php/home/index
你的这个地址说明你想访问的是c3目录下的ci程序.
所以要将.htaccess的最后一行改成RewriteRule ^(.*)$ /c3/index.php/$1 重启阿怕齊了没有??
页:
[1]