首页 > 其他 > 详细

tp5.1路由报错No input file specified.

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

问题:

  按照官方教安装了框架,打开首页没问题,可是安装教程路由规则打开 "http://127.0.0.1/hello/2" 时,

却报错误  "No input file specified."

解决方案(2选一):

  1.修改 public/.htaccess文件为:

<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>

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

 

tp5.1路由报错No input file specified.

原文:https://www.cnblogs.com/izch/p/10051276.html

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