location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } } 转载于:https://www.cnblogs.com/dongbo/p/10984498.html