码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2018-12-01 23:40:51      阅读:240      评论:0      收藏:0      [点我收藏+]

标签:安装   size   writer   request   版本   错误   路由   tee   color   

问题:

  按照官方教安装了框架,打开首页没问题,可是安装教程路由规则打开 "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.

标签:安装   size   writer   request   版本   错误   路由   tee   color   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!