Changing referrer in header ??

Discussion in 'HTML & Website Design' started by AKnogood, Aug 31, 2009.

  1. #1
    I have some traffic on site A that i would like to send to site C but I would like the refferer to be shown as site B when it reaches site C. What's the best way to do that?

    The script I currently use is this one. I send traffic from site A to site http://www.B.com/script.php which contains this code:

    
    <html>
    <head>
    <meta http-equiv="Refresh" content="0; URL=http://www.C.com">
    </head>
    <body onLoad="javascript: window.location='http://www.C.com';">
    </body>
    </html>
    Code (markup):
    But it works for about 1 visitor out of 10...

    Any idea how to improve that?

    Thanks!
    Vincent
     
    AKnogood, Aug 31, 2009 IP
  2. lucian00

    lucian00 Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Why don't you use header function :http://www.php.net/manual/en/function.header.php

    On site A - index.php:
    <?php
    header("Location: http://www.B.com/index.php"); /* Redirect browser */
    ?>
    
    PHP:
    On site B - index.php:
    <?php
    header("Location: http://www.C.com/"); /* Redirect browser */
    ?>
    
    PHP:
     
    lucian00, Sep 1, 2009 IP