nginx 设置thinkphp的伪静态 location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php?s=$1 last; break; } }