location / { index index.html index.htm index.php admin.php; #访问路径的文件不存在则重写URL转交给ThinkPHP处理 if (!-e $request_filename) { rewrite ^/index.php(.*)$ /index.php?s=$1 last; rewrite ^/FEqhzMTbLA.php(.*)$ /FEqhzMTbLA.php?s=$1 last; break; } }