+ Reply to Thread + Post New Thread
Results 1 to 2 of 2

Thread: PHP redirectig help needed...

  1. #1
    Noobie
    Join Date
    Apr 2008
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default PHP redirectig help needed...

    Will try to explain this to the best of my abilities. Here is what I want to do.

    I have a landing page we will calling it landingpage.com

    I send someone an email that tells them to go to linkshortner.com which redirects them to my site landingpage.com. If they come to my page via this linkshortner I want to redirect them to the offer immediately.

    However if they just type in my landingpage.com into their browser and go there directly I want them to stay at the page without being redirected to the offer.

    Does anyone know the php code for this? It would help me tremendously.

  2. #2
    Noobie
    Join Date
    Apr 2008
    Posts
    117
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    PHP Code:
    $referer $_SERVER['HTTP_REFERER'];
    if(
    $referer == "linkshortner.com")
    ****{
    ****
    header("Location: link_to_offer");
    ****} 

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts