在线咨询
微信咨询
服务热线
服务热线:15639912513
TOP
当前位置:
首页 > 新闻中心> PHP课堂>Apache服务器出现No input file spec…

Apache服务器出现No input file specified如何解决

发布时间:2019-12-20 浏览:1049次

当Apache服务器出现No input file specified时候,该如何解决呢?

答案在htaccess文件中的设置。那么htaccess该如何写呢?

<IfModule mod_rewrite.c>

  Options +FollowSymlinks -Multiviews

  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-d

  RewriteCond %{REQUEST_FILENAME} !-f

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

</IfModule>

其中  RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]这句中在index.php后面多了一个问号?

加上这个问号,就可以了。

TAG
1049
该内容对我有帮助