关于tp5.1隐藏入口文件出现No input file specified.的解决办法

根据官方的重写URL进行配置之后出现这个问题很好解决就是把.htaccess文件中的内容改成下面的形式

<IfModule mod_rewrite.c>
  Options +FollowSymlinks -Multiviews
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?s=$1 [QSA,PT,L]
</IfModule>

其实就是index.php 后面加入一个? 差不多就可以解决了

 

posted @ 2019-08-13 09:14  thomas张  阅读(334)  评论(0编辑  收藏  举报