今天在用thinkphp6框架启用多应用的时候出现【No input file specified.】错误的处理方法
2022-11-24 11:10:29
135
{{single.collect_count}}

今天用tp6,通过命令建立两个应用访问的时候出现如下图:

查询后解决办法是打开public下的.htaccess文件,

把:RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]

改为:RewriteRule ^(.*)$ index.php [L,E=PATH_INFO:$1]

再次访问就可以正常访问了

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}