Automatic server redirect that passes through as the referring site

Posted by nsearle on Server Fault See other posts from Server Fault or by nsearle
Published on 2010-08-10T19:30:29Z Indexed on 2010/12/21 7:55 UTC
Read the original article Hit count: 308

Hey All,

As always, I would like to thank all of your help and assistance in advance.

I am looking for a way to automatically redirect a user to a site and maintain the redirect site as the referral site. Let me explain the process and what is needed in a step by step format.

  • User clicks on a desired link in an email
  • User is navigated to testdomain.com
  • User is automatically redirected to test.com/landing
  • test.com sees testdomain.com as the referral site
  • Data is gathered via Google Analytics

I am unsure as if this PHP code will take care of it, or not -

header("Location: http://google.com", true, 303);

I could test and that is most likely what I am going to do. But I would like to understand a little more as to WHY this would or WHY this wouldn't work.

© Server Fault or respective owner

Related posts about php

Related posts about redirect