nginx thinkphp 配置pathinfo

  location / {
        root  项目名称;
        index index.html index.php;
        try_files $uri $uri/ =404;
if (!-e $request_filename){
          rewrite ^(.*)$ /index.php?s=$1 last; #重点
     }
原文地址:https://www.cnblogs.com/JANCHAN/p/7954144.html