Hi all there.

I wnat to setup an affiliate program using my clickbank.com merchant account.

As you know clickbank offers easy affiliate links using this path:
http://hop.clickbank.net/?affiliateID/merchantID

what i want is to creat a php code that gives affiliates a different URL to promote mine, something like (say johndoe is my affiliate):

http://mydomain.com/affiliate.php?ID=johndoe

then the affiliate.php redirects the visitor to
http://hop.clickbank.net/?johndoe/myclickbankID
using the ID variable in the first URL to complete the "clickbank hop" link

Is this useful? Absolutely yes. It will improve search engine ranks in view affiliates will add my domain name in the link and not the clickbank one to their sites, giving more links.

Something that should be avoided is the meta-refresh system to redirect , most search engines like google hates meta-refresh and may ban you if this system found by the robots 😉

Hope someone here can help building this little code, my php skills are near to zero 😕

txs in adv

    $id=$_GET['ID'];
    
    header("location: http://hop.clickbank.net/?$id/foo/bar/whatever");
    
    ?>

      Oh, what a simple line it was. Thank you !!!

        Write a Reply...