donlyn

在nginx对应项目的配置文件中修改

location / {
    index index.php index.html error/index.html;
    # !!!url重写!!!
    if (!-e $request_filename) {  # 注意 if 后面有空格
        rewrite ^/index.php(.*)$ /index.php?s=$1 last;  
        rewrite ^(.*)$ /index.php?s=$1 last;  
        break;  
    }
}

 

分类:

技术点:

相关文章:

  • 2021-09-04
  • 2022-02-02
  • 2021-04-14
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-09-08
  • 2022-12-23
  • 2021-07-30
  • 2021-09-15
相关资源
相似解决方案