问ai就行了啊 # 伪静态规则 location / { rewrite ^/news/([0-9]+)$ /news.php?id=$1 last; } 用户访问 http://example.com/news/42,Nginx 会将其重写为 /news.php?id=42