fast_cgi模式下php5.6报错 "No input file specified"

//默认伪静态
<IfModule mod_rewrite.c>
  Options +FollowSymlinks
  RewriteEngine On

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

修改后的伪静态
<IfModule mod_rewrite.c>
Options +FollowSymlinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]        
</IfModule>

//仅仅就是在正则结果“/$1”前面多加了一个“?”号,问题也就随之解决了。
Last modification:September 12th, 2018 at 05:28 pm

Leave a Comment