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;}}
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;}}