我的目录结构是/ var/www/CI /,文件夹CI下有所有文件夹,即应用程序,系统.在CI下创建了一个.htaccess文件.
以下是.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>
Run Code Online (Sandbox Code Playgroud)
仍然localhost/CI/blog出现404错误.谁能指导这条规则错在哪里?