问题:
安装完TP5后,进行访问,报错:No input file specified. 解决方式:
将 <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>
修改为
<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>
本文介绍了解决ThinkPHP5框架安装后访问出现“No input file specified.”错误的方法。通过调整.htaccess文件中的URL重写规则,使服务器能够正确地将请求路由到index.php。
3014

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



