tp5 No input file specified.
把public下面的.htaccess里面的代码改一下
.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>
.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>
本文介绍了解决ThinkPHP5框架中出现的Noinputfilespecified错误的方法,通过修改.htaccess文件中的重写规则,确保应用程序能够正确地接收和处理请求。

855

被折叠的 条评论
为什么被折叠?



