thinkphp下nginx重写index.php 在配置文件上加上这一句,简单粗暴。兼容rewrite模式 location / { try_files $uri $uri/ /index.php?s=$uri&$args; }