2012-04-26 142 views
0

我的網站使用前端Flash和後端Kohana。我的後端面板在本地工作。但是當在遠程服務器上打開管理面板時,有這個問題:遠程服務器上的站點:「未指定輸入文件」。

「沒有指定輸入文件。」

我該如何解決這個問題?

編輯:

這就是我的.htaccess文件:

# Turn on URL rewriting 
RewriteEngine On 
# Put your installation directory here: If your URL is www.example.com/, 
# use/If your URL is www.example.com/kohana/, use /kohana/ 
RewriteBase/
# Do not enable rewriting for files or directories that exist 

RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 

# For reuests that are not actual files or directories, Rewrite to 
# index.php/URL 

#RewriteRule ^/$ /index.php?langKey=$1 [QSA] 
RewriteRule ^(.*)$ /index.php/$1 [PT,L] 

當我寫mysite.com/index.php/admin後端工作。但我想mysite.com/admin

+0

我敢打賭,你使用Godaddy的託管:) – 2012-11-29 15:57:57

回答

0

此消息表示您無法看到網站目錄。當然,index.php存在,它是可讀的。 此外,在一些nginx的配置中沒有使用的.htaccess

+0

編輯我的問題。 – Karmacoma 2012-04-26 14:40:43

2

嘗試將最後一行改爲

RewriteRule .* /index.php?kohana_uri=$0 [QSA] 

它爲我工作在一個Apache的PHP-fcgi的配置。

相關問題