2015-10-29 36 views
1

我正在使用codeigniter進行項目。我的本地機器一切都很好。但是當我上傳到我的現場服務器它顯示錯誤未指定輸入文件。在Codeignitter

No input file specified. 

我不知道錯在哪裏。

這裏是我的.htaccess

RewriteEngine On 
RewriteCond %{REMOTE_ADDR} !^134\.17\.135\.115 
RewriteCond %{DOCUMENT_ROOT}/maintenance.html -f 
RewriteCond %{DOCUMENT_ROOT}/maintenance.enable -f 
RewriteCond %{SCRIPT_FILENAME} !maintenance.html 
RewriteRule ^.*$ /maintenance.html [R=503,L] 
ErrorDocument 503 /maintenance.html 
#Header Set Cache-Control "max-age=0, no-store" 

RewriteEngine on 
RewriteRule ^f/(.*)$ /$1 [L,NC] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule .* index.php?/$0 [PT,L] 

config.php

我設置uri_protocolAUTO

誰能幫助?

回答

1

嘗試改變你的.htaccess這樣。

RewriteEngine On 
RewriteCond %{REQUEST_URI} ^/system.* 
RewriteRule ^(.*)$ index.php?/$1 [L] 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.+)$ index.php?/$1 [L] 

或者這

RewriteEngine On 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ index.php?/$1 [L] 
+0

讓我試試。我會更新你是否工作或沒有:) –

+0

現在顯示錯誤'500內部服務器錯誤' –

+0

當然,有一個嘗試... –