View Single Post
  #7 (permalink)  
Old 09-11-2006, 10:08 AM
Teli's Avatar
Teli Teli is offline
5 Star Senior Member
 
Join Date: Nov 2005
Location: Florida
Posts: 385
Default

I should also, probably, mention that if you have a lot of affiliate links pointing to Clickbank, instead of filling up an .htaccess file with mod_rewrite rules, it may be a better idea to create a simple redirect script.

Example:
Create a file called 'go.php' or 'whatever.php'

In the file, add:
Code:
<.?php
$id = $_GET['id'];
header('Location: http://'.$id.'.hop.clickbank.net/');
?>
(I needed to add a period just after the < in the above example because it was having problems displaying. If you use the code, remove the period between < and ?php.)

Then, upload the file to your site and anytime you wish to link to a product, link to it using its clickbank name, like:

go.php?id=dating

will redirect to
dating.hop.clickbank.net

Hope that makes sense.

~ Teli
Reply With Quote