How to redirect Clickbank affiliate link with PHP

Discussion in 'ClickBank' started by Johnyboy, Jun 30, 2009.

  1. #1
    This is not a new stuff, but since I didn't find it anywhere on this forum I decided to share it with you.

    Redirecting a Clickbank affiliate link through a PHP file is easy to do and you don't even need to know coding. The main script will look like this:

    <?php header("Location: http://3fd971z6ua8imtfu4w4bv.hop.clickbank.net/?tid=review"); ?>
    Code (markup):
    Step 1:
    Make a new .txt file and name it whatever.php
    Step 2:
    Paste the code above in the file
    Step 3:
    Modify the link after "Location: " and add or remove the Clickbank tracking code
    Step 4:
    Link to this file whenever you want inside your blog posts or content

    Enjoy and gimme some feedback :D

    PS: Don't bother pasting that link in your browser. It is not a valid Clickbank link.
    Tip: Use product name to name your file.
     
    Johnyboy, Jun 30, 2009 IP