nginx 强制跳转域名
1、匹配到
hewashanzhao.com 强制跳转到 https://hewa.cn
server {
listen 8110;
server_name hewashanzhao.com;
location / {
rewrite ^/(.*)$ https://hewa.cn/$1 permanent;
}
}
1、匹配到
hewashanzhao.com 强制跳转到 https://hewa.cn
server {
listen 8110;
server_name hewashanzhao.com;
location / {
rewrite ^/(.*)$ https://hewa.cn/$1 permanent;
}
}