【老生常谈】TP5.1的No input file specified解决办法

WINDOWS + APACHE + PHP 5.6.27 环境,TP5.1报No input file specified.错误。

本来以为常规操作在index.php加上?就能解决的事情,居然没效果了。。

1
2
3
4
#常规操作    
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
改为
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]

后来发现线上环境开启了防跨站,在public目录下生成了user.ini。只需要把user.ini删除之后重启环境一切恢复正常

【老生常谈】TP5.1的No input file specified解决办法

作者:有点东西

链接: https://www.youdiandongxi.com/article/tp5-no-input-file-specified.html

协议:本文采用 CC BY-NC-SA 4.0 隐私协议,转载请注明出处!

评论区