这就是一个笔记 That’s all 在nginx配置文件中location / 中添加如下判断。然后记得重启。。 if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; }