远程服务器上的站点:“未指定输入文件。”

时间:2012-04-26 14:22:16

标签: php flash .htaccess kohana

我的网站使用前端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

2 个答案:

答案 0 :(得分:3)

尝试将最后一行更改为

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

它在apache php-fcgi配置上对我有用。

答案 1 :(得分:0)

此消息表示您无法查看网站目录。确保index.php存在且可读。 在某些nginx配置中也没有使用.htaccess