1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Onsite php redirect, then to an affiliate? What'd going on?

Discussion in 'PHP & Perl' started by biks, Dec 6, 2008.

  1. biks

    biks Power Member

    Joined:
    Oct 28, 2008
    Messages:
    713
    Likes Received:
    376
    Occupation:
    Video editor, graphics guy
    Could someone explain what's going on behind the scenes here and why?

    I was studying the site

    HTML:
    http://www.sage-hearts.com/
    (an online dating "info" site stuffed with affiliate links.)

    On their review page for Match.com

    HTML:
    http://sage-hearts.com/dating-service-reviews/match.html
    the link TO match.com is actually this:

    HTML:
    http://sage-hearts.com/recommends/match.php
    This page directly takes you to match.com. (as a redirect?) Once you're at match.com, your url is this:

    HTML:
    http://www.match.com/matchus/cp.aspx?cpp=/en-us/partner/affiliate/affiliate_reg_7days.html&lpid=girl&trackingid=522990&bannerid=652572&siteID=PvjioY3I0VU-284hsBWVkxgLJint6uBr4w
    Obviously the affiliate code is right there. Why didn't they just embed THAT code into their links, verses having the /recommends/match.php page?

    What's going on with the /recommends/match.php page? It's ONLY a redirect? Somewhere they're embedding their affiliate code. Why did they do this? What's the advantage?
     
  2. cloudhand

    cloudhand Newbie

    Joined:
    Feb 23, 2008
    Messages:
    9
    Likes Received:
    0
    They are most likely using Power Link Generator or a similar product. PLG can set up a directory structure on your domain where your affiliate links have the format yourdomain.com/recommends/whatever.php.

    The benefit of using programs such as this is that all clicks on the link are tracked. PLG records the click count as well as some information about the clicks. It also redirects to the real affiliate link while hiding that link on your domain.

    GoTryThis is another such product that can hide affiliate links while providing tracking and information about the clicks.
     
  3. NikhilG

    NikhilG Guest

    hey biks,

    well the file match.php is using a PHP redirect.
    The process goes like this:

    1. You create a folder "recommends" in your root directory and then a PHP file named Match.php (in the particular example)

    2. In the "match.php" you enter the following code:
    Code:
    <?php
    header('Location: <<AFFILIATE LINK>>');
    ?>
    
    Thats it..

    what this does is, whenever someone clicks on match.php link:
    Code:
    http://sage-hearts.com/recommends/match.php
    match.php executes a PHP redirect to <<AFFILIATE LINK>>

    I hope that was useful.
     
  4. squiggy22

    squiggy22 Registered Member

    Joined:
    Sep 22, 2008
    Messages:
    59
    Likes Received:
    42
    Yeah, kinda looks like an amateur (not that I'm not, but ...) who is using a very simple .php file to do the redirect without any cloaking.

    Probably doesn't know it isn't necessary since the link isn't cloaked.

    Otherwise person is using a tracking software but isn't using the cloaking feature of the software, just using it to track clicks.

    Doesn't make much sense which is why I think it's someone who doesn't really know what they're doing technically.
     
  5. biks

    biks Power Member

    Joined:
    Oct 28, 2008
    Messages:
    713
    Likes Received:
    376
    Occupation:
    Video editor, graphics guy
    Thanks Nikhilg!

    I may want to use that. (Once I start the affiliate marketing going.)
     
  6. NikhilG

    NikhilG Guest

    Follow the forum rules.. Always hit the thanks button :p rather than saying thanks..

    anyways glad to help :p
     
  7. bbyte

    bbyte Registered Member

    Joined:
    Oct 24, 2008
    Messages:
    86
    Likes Received:
    70
    "Obviously the affiliate code is right there. Why didn't they just embed THAT code into their links, verses having the /recommends/match.php page?"

    Because it looks way nicer? People don't like seeing huge affiliate links :)
     
  8. NikhilG

    NikhilG Guest

    no this is basically to avoid affiliate-sales-stealing.

    basically many visitors who are actually buyers, simply trim the affiliate part of the url, which results in loss of sales..