Php 远程服务器上的站点:";未指定输入文件;
我的网站使用前端Flash和后端Kohana。我的后端面板在本地工作。但在远程服务器上打开管理面板时,出现以下问题: “未指定输入文件。” 我怎样才能解决这个问题 编辑: 这是我的.htaccess文件:Php 远程服务器上的站点:";未指定输入文件;,php,flash,.htaccess,kohana,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.examp
# 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此消息意味着您无法查看站点目录。确保index.php存在并且可读。
在某些nginx配置中也不使用htaccess。此消息意味着您无法查看站点目录。确保index.php存在并且可读。
在某些nginx配置中也不使用htaccess尝试将最后一行更改为
RewriteRule .* /index.php?kohana_uri=$0 [QSA]
它在apache php fcgi配置中对我有效。尝试将最后一行更改为
RewriteRule .* /index.php?kohana_uri=$0 [QSA]
它在apache php fcgi配置上对我起了作用。我打赌你在使用Godaddy的主机:)我打赌你在使用Godaddy的主机:)