【发布时间】:2012-12-27 04:37:15
【问题描述】:
我的目录结构是 /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>
仍然 localhost/CI/blog 给出 404 错误。谁能指导一下这条规则哪里错了?
【问题讨论】:
标签: .htaccess codeigniter codeigniter-2