主要是thinkphp地址跳转的问题,可以直接修改一下配置文件就可以了 location / { // …..省略部分代码 if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=$1 last; break; } }