Help with Redirecting

Discussion in 'HTML & Website Design' started by sammiam, Dec 4, 2008.

  1. #1
    I think I've seen this done before but I'm not sure. I have a landing page for an affiliate program I belong to that I"ll be using to capture email addresses.

    When they land on the merchant page, I don't want them to see the affiliate url. I want them to see ex. www.getpaidtomakemoney.com and still get credit if a sale is made.

    Is this doable? If so, how would I accomplish this?

    Thanks and I apologize if this is not posted in the right category, this is my first post.
     
    sammiam, Dec 4, 2008 IP
  2. mcsoftware

    mcsoftware Peon

    Messages:
    5
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hello sammiam,
    If you were to create an .php page like this.

    <?
    header("Location: http://www.whatever.com/youraffilitelinkis=http://www.whateverdomain.com/pageyouwant");
    exit;
    ?>
    Code (markup):
    This should work for you. When you create your php page. just name it
    what ever you want like phone.php and then send people to http://www.yourdommain.cOm/your.php page and that should redirect them
    to your affiliate site with out your affiliate id showing up.

    :)
     
    mcsoftware, Dec 8, 2008 IP
  3. isolvum

    isolvum Well-Known Member

    Messages:
    372
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    110
    #3
    An html solution would be to point your link to this page:

    <head>
    <meta http-equiv="refresh" content="0
    url=http://www.youraffiliateurl.com/">
    </head>

    Should do the trick nicely.
     
    isolvum, Dec 8, 2008 IP
  4. infopage

    infopage Peon

    Messages:
    177
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    But just in case you hate php'ing here's another one:

    The last part at the end cookies your visitors. Remember when naming this page to add .htm at the end so it looks like YOURSITE.COM/REDIRECTEDAFF.HTM

    There's also a code you can put into your .htaccess file after "# END WordPress":
     
    infopage, Dec 8, 2008 IP
  5. dejangex

    dejangex Peon

    Messages:
    113
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You would probably want to capture the referrer and then redirect. Here is how:

    
    //Assuming that you page is: www.getpaidtomakemoney.com/landing.php?ref=45654
    <?
    $ref = $_GET['ref'];
    
    //Do something with $ref...
    
    header('Location: http://www.getpaidtomakemoney.com/register.php');
    exit;
    ?>
    
    PHP:
    This is assuming you are using php
     
    dejangex, Dec 8, 2008 IP