2016-10-22 62 views
0

我用笨3.0.1和我的htaccess的文件包含笨3.0.1 htaccess的問題

<IfModule mod_rewrite.c> 
RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php/$1 [L] 
</IfModule> 

而且我已經改變了配置文件,以

$config['index_page'] = ''; 
$config['uri_protocol'] = 'REQUEST_URI'; 

但仍然得到404沒有找到index.php頁面, 我會非常感激。

回答

0

更改該代碼添加.htaccess文件笨

DirectoryIndex index.php 
RewriteEngine on 

RewriteCond $1 !^(index\.php| (.*)\.swf|forums|images|css|downloads|jquery|js|robots\.txt|favicon\.ico) 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ ./index.php?$1 [L,QSA] 
+0

現在我就更換整個的.htaccess代碼之後的服務器錯誤。 –