nginx 404 not fund 配置 thinkphp6 伪静态
2022-11-24 11:10:29
123
{{single.collect_count}}

win10 下面 thinkphp6 ,使用phpstudy 的 apache 切换到nginx 控制器报错 404 not fund

 

 

将以下代码 放到 网站 -> 管理->修改->伪静态  重启phpstudy 即可 

location / {if (!-e $request_filename){rewrite ^/index.php(.*)$ /index.php?s=$1 last;rewrite^(.*)$/index.php?s=$1last; break;}}

 

 

 

回帖
全部回帖({{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 ? '加载中...' : '查看更多评论'}}