我在ubuntu 12.10上使用apache2。但htaccess的不工作,這是我的htaccess文件:codeigniter 2.1.3 htaccess不工作
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /ci/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
$config['base_url'] = 'http://localhost/ci/index.php';
$config[‘index_page’] = 「」;
$config[‘uri_protocol’] = 「AUTO」;
1 http://localhost/ci/index.php/site/about
2 http://localhost/ci/site/about
的第一部作品,但我想第二個工作任何想法如何讓它起作用。謝謝
404 Not Found
The requested URL /ci/site/about was not found on this server.
儘量去除$配置[ 'BASE_URL'] = 'HTTP://localhost/ci/index.php';到$ config ['base_url'] ='' – 2013-04-11 05:55:33
仍然是相同的錯誤信息 – mercy 2013-04-11 06:05:20