后台采用ThinkPHP5框架,nginx伪静态设置如下:

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