tp6--nginx下pathinfo配置

可以看到默认报错了

官方手册有解释原因

tp6--nginx下pathinfo配置

 

 

但是这个规则不够全面,推荐使用下面的写法

tp6--nginx下pathinfo配置

 

 

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

对了,文件路径大致在

tp6--nginx下pathinfo配置

  修改配置之后重启下nginx服务。

相关文章:

  • 2022-12-23
  • 2022-03-04
  • 2022-12-23
  • 2022-12-23
  • 2021-11-05
  • 2021-11-25
  • 2022-12-23
猜你喜欢
  • 2022-01-22
  • 2022-12-23
  • 2022-01-14
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2021-07-31
相关资源
相似解决方案