search

Home  >  Q&A  >  body text

apache - How to do 301 redirect with pan-analytics

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

怪我咯怪我咯2750 days ago443

reply all(1)I'll reply

  • phpcn_u1582

    phpcn_u15822017-05-16 17:05:41

    My VPS control panel has this option, you can consult your hosting customer service

    reply
    0
  • Cancelreply