Nginx rewrite
is currently a secondary directory (including all the following)
http://www.abc.cn/en/.
how to redirect to the root directory of another domain name:
http://www.abc.com/.
Nginx rewrite
is currently a secondary directory (including all the following)
http://www.abc.cn/en/.
how to redirect to the root directory of another domain name:
http://www.abc.com/.
there is no verification, give a general idea:
server{
servername www.abc.cn;
location /en/ {
rewrite ^/en/(.*)$ http://www.abc.com/$1 redirect;
}
}
there are several URLwww.example.com abc 1.html www.example.com bdc 3.html www.example.com utf 2.html in this form. You want to redirect to the corresponding test.example.com abc 1.html test.example.com bdc 3.html test.example.com utf 2.html . Dir...