tp5.1访问报错No input file specified

解决方法:

找到 public/.htaccess 文件,在 index.php 后面添加一个 “?”,完整代码如下:

<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>

重新访问即可!

猜你喜欢

转载自blog.csdn.net/studyphp123/article/details/86173797
今日推荐