TP5,TP6隐藏index.php路由前缀 在nginx配置文件添加上这行 location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; } }