thinkphp5开发的网站出现”No input file specified”

在public文件夹里面找到 .htaccess文件,然后修改为

<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On

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

 

其实就是在正则结果“/$1”前面多加了一个“?”号

posted @ 2020-06-04 10:50  初雨诗清风  阅读(174)  评论(0编辑  收藏  举报