thinkphp5 tp5 与 nginx 搭配在根目录和子目录中如何设置伪静态

配置文件参考一下:

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

thinkphp5 tp5  与 nginx  搭配在根目录和子目录中如何设置伪静态

上一篇:Android开机键失灵启动手机的解决办法


下一篇:angularjs+ionic注册页面表单验证(手机号、确认密码、60s后重发验证码)