How do people make those affiliate link jump pages?

Discussion in 'Commission Junction' started by thatdaveguy, Feb 4, 2009.

  1. #1
    Here's a fake example:

    ***.com/go/affiliateXYZ

    So you just link from your blog post, to your own site, which then redirects you to the offer you were trying to sell. I was always under the impression you cannot modify the links an affiliate provides? Am I incorrect?

    If you can... then how do you make a redirect like that?
     
    thatdaveguy, Feb 4, 2009 IP
  2. codecre8r

    codecre8r Well-Known Member

    Messages:
    148
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    128
    #2
    Create the following folder on your website: /go/affiliateXYZ

    Create a new php page named 'index.php' and insert this code:

    <?php
    header( 'Location: http://youraffiliatelink.com/click/?id=blah' ) ;
    ?>
    Code (markup):
    Replace the link with your affiliate link. Make sure you leave a space between Location: and the URL.

    Then, just drop the index.php page into that folder and you're ready to go.
     
    codecre8r, Feb 4, 2009 IP
    thatdaveguy likes this.
  3. codecre8r

    codecre8r Well-Known Member

    Messages:
    148
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    128
    #3
    You can also do the same thing in your .htaccess file.

    Just add the following line to the .htaccess file in your root folder:

    
    redirect 301 /go/affiliateXYZ/ http://youraffiliatelink.com/click/?id=blah
    
    Code (markup):
     
    codecre8r, Feb 4, 2009 IP
  4. thatdaveguy

    thatdaveguy Peon

    Messages:
    232
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks a lot guys. So I take it this method of linking/redirection is OK with all affiliate programs?
     
    thatdaveguy, Feb 4, 2009 IP
  5. codecre8r

    codecre8r Well-Known Member

    Messages:
    148
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    128
    #5
    Yes, these methods are safe to use with all affiliate programs. You're essentially masking the URL on your site while still redirecting the user to the affiliate link.
     
    codecre8r, Feb 4, 2009 IP
  6. GuruOfSearch

    GuruOfSearch Peon

    Messages:
    62
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    You can also combine this with tracking software (just search for a link click tracking script or something of that nature) so you can keep an eye on your click-throughs and compare the numbers you get with those from your affiliate provider.
     
    GuruOfSearch, Feb 5, 2009 IP
    thatdaveguy likes this.
  7. relaother

    relaother Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    html or php redirect
     
    relaother, Feb 5, 2009 IP