Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/268.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php和htaccess错误-“;未指定输入文件";_Php_Mysql_.htaccess - Fatal编程技术网

Php和htaccess错误-“;未指定输入文件";

Php和htaccess错误-“;未指定输入文件";,php,mysql,.htaccess,Php,Mysql,.htaccess,我正在使用Rester从我的MySQL数据库生成restfulapi 在localhost上一切正常,但当我将其上载到我的GoDaddy主机帐户并尝试访问重写的URL时,我会遇到“未指定输入文件”错误。My.htaccess文件包含: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule

我正在使用Rester从我的MySQL数据库生成restfulapi

在localhost上一切正常,但当我将其上载到我的GoDaddy主机帐户并尝试访问重写的URL时,我会遇到“未指定输入文件”错误。My.htaccess文件包含:

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

重新启动发动机
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^(.*)$index.php/$1[L]

有人对此有解决方案吗?

试试看,转到Godaddy Webroot,按照以下规则制作一个
php5 ini
文件

cgi.fix_pathinfo = 1
看看这里