tp框架 php5.5以上版本出现”No input file specified“错误问题解决

 

 

public文件夹下  .htaccess文件中的

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

在默认情况下会导致No input file specified.

修改成

RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]

问题解决。

 

posted @ 2018-05-12 21:57  The_small_white  阅读(207)  评论(0编辑  收藏  举报