nginx伪静态规则: if (!-d $request_filename){ set $rule_0 1$rule_0; } if (!-f $request_filename){ set $rule_0 2$rule_0; } if ($rule_0 = "21"){ rewrite ^/([a-z0-9A-Z]+)$ /app.php/$1 last; } 后台地址:域名/admin.php