每当我收到关于 的请求时mydomain.com,我都会www使用以下重写规则将其重定向到子域:
mydomain.com
www
server_name mydomain.com; rewrite ^(.*)$ $scheme://www.mydomain.com$1 permanent;
但是如果收到一个 POST 请求,它会被重定向为 GET。 为什么?重定向此内容的正确方法是什么?
rewrite http nginx
http ×1
nginx ×1
rewrite ×1