此处最简单的做法是在 xxx.domain.com 上配置 Web 服务器,将所有请求 301 重定向到 domain.com。
例如:
但需调整为类似以下内容:
server {
server_name xxx.domain.com;
return 301 https://domain.com$request_uri;
}
此处最简单的做法是在 xxx.domain.com 上配置 Web 服务器,将所有请求 301 重定向到 domain.com。
例如:
但需调整为类似以下内容:
server {
server_name xxx.domain.com;
return 301 https://domain.com$request_uri;
}