本文主要是介绍tp5.1访问报错No input file specified,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
解决方法:
找到 public/.htaccess
文件,在 index.php 后面添加一个 “?”,完整代码如下:
<IfModule mod_rewrite.c>Options +FollowSymlinks -MultiviewsRewriteEngine OnRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>
重新访问即可!
这篇关于tp5.1访问报错No input file specified的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!