在需要访问的域名的conf文件中,比如

vim /etc/nginx/123.com.conf

 

location / { // …..省略部分代码
    if (!-e $request_filename) {
        rewrite  ^(.*)$  /index.php?s=/$1  last;
        break;
    }
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2021-09-06
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2022-02-11
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
相关资源
相似解决方案