apache - How to do 301 redirect with pan-analytics
怪我咯
怪我咯 2017-05-16 17:03:41
0
1
403

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

怪我咯
怪我咯

走同样的路,发现不同的人生

reply all(1)
phpcn_u1582

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

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!