apache No input filespecified

访问已配置好的重写规则的项目的项目是,提示No input file specified.这个原因在于使用的PHP5.6是fast_cgi模式,而在某些情况下,不能正确识别path_info所造成的错误。默认的.htaccess里面的规则
Options +FollowSymLinks -Multiviews
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(((?!index.php).)*)$ index.php/$1 [L,QSA]
解决方法:
RewriteRule ^(((?!index.php).)*)$ index.php?/$1 [L,QSA]
index.php后加上?可解决问题。
原文地址:https://www.cnblogs.com/xiangdongsheng/p/14069676.html