TP5.1路由设置之后 报错No input file specified.

TP5.1路由设置之后 报错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 [L,E=PATH_INFO:$1]

</IfModule>

原文链接:https://blog.csdn.net/qq_42289686/article/details/93136479

 

posted @ 2020-07-07 14:21  Smile☆  阅读(155)  评论(0编辑  收藏  举报