我的目录结构是/ var/www/CI /包含文件夹CI下的所有文件夹,即应用程序,系统。在CI下创建了一个.htaccess文件。无法从CodeIgniter网址中删除index.php
以下是.htacess中的代码。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|public|images|robots\.txt|css)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
仍然localhost/CI /博客给404错误。任何人都可以指导这个规则错误的地方吗?
它对我来说就像一个魅力!谢谢! – JunaidKirkire
你是最受欢迎的 –
我已经扔了几个博客和帖子寻找这个答案,你是唯一一个对我有正确答案,并且在做什么时非常清楚。非常感谢! –