我用下面的.htaccess:Codeigniter在Get請求中沒有index.php的情況下無法工作?
AddDefaultCharset utf-8
RewriteEngine On
RewriteBase/
DirectoryIndex index.php
Options All -Indexes
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
而且設置在笨:
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';
因此,所有頁面由URL路徑domain/index.php/page
打開,但它並不適用於domain/page
工作
似乎不起作用htaccess的,我怎麼能查嗎?因爲mod_rewrite在 – Babaev
你使用什麼版本的codeigniter? – user4419336