首页 > 其他 > 详细

tp5.1 错误 No input file specified.

时间:2018-12-01 12:45:20      阅读:167      评论:0      收藏:0      [点我收藏+]

http://www.xxxx.com/admin/index/index

出现错误:No input file specified.

 

一、方法

与php版本有关  PHP版本5.6以上都会出现这个问题  把php版本改为5.5就OK

 

二、方法

.htaccess文件中的

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

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

修改成

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

问题解决。

 

 

<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]
</IfModule>

  

tp5.1 错误 No input file specified.

原文:https://www.cnblogs.com/wntd/p/10048786.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!