nginx配置隐藏入口文件index.php location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; } }