if (!-e $request_filename) { rewrite ^/(.*)$ /index.php?s=$1 last; }
nginx 重写去掉index.php
原文:https://www.cnblogs.com/ningjiabing/p/11602500.html