Mobile app version of vmapp.org
Login or Join
Odierno851

: Can I forward "referrer" information to other address? I have two addresses for two servers: www.urlA.com www.urlB.com I have all my websites installed in www.urlB.com, but visitors recognize www.urlA.com

@Odierno851

Posted in: #Php #Referrer

I have two addresses for two servers:
urlA.com urlB.com
I have all my websites installed in urlB.com, but visitors recognize urlA.com primarily.

I have urlA.com/index.php as the following

<?php
header('Location: www.urlB.com/'); ?>


But, when I use this forwarding method, the tracking javascript in urlB.com cannot recognize where the visitors are from. I only obtain "NO REFERRING LINK"

What should I do to do the following two jobs:
1. to forward urlA.com to urlB.com
2. to receive the referrer information

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Odierno851

1 Comments

Sorted by latest first Latest Oldest Best

 

@Kevin317

Try using a 301 redirect:

<?php
header('Location: www.urlB.com/', true, 301);
?>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme