Now there is a domain name (abc.com) that is pan-resolved to a website
Now we need to replace the domain name (abc.com) with the domain name (xyz.com)
Because it is pan-resolved, it is required that the previous domain name and the redirected domain name must be the same
For example, there was an address before:
xx.abc.com
Now redirect to xx.xyz.com
The host is Linux
The rule file is .htaccess
rewritecond %{http_host} ^(.*)$\.abc\.com [NC]
rewriterule ^http://(.*)$\.xyz\.com/ [L,R=301]
But it doesn’t work. Please give me some advice
phpcn_u15822017-05-16 17:05:41
My VPS control panel has this option, you can consult your hosting customer service