Using PHP:
Create a folder like yoursite.com/goto or similar. Create a php file, say go.php, and copy the following in:
<?
$m = $_GET['m'];
if ($m == "affliatename1") {$link = "http://www.affiliate1.com/affiliatecode1";}
if ($m == "affliatename2") {$link = "http://www.affiliate2.com/affiliatecode2";}
if ($m == "affliatename3") {$link = "http://www.affiliate3.com/affiliatecode3";}
header("Location: $link");
exit();
?>
- Now replace "affiliatename1" with whoever you are selling product for, or anything. The name is just for reference.
- Replace the "http://www.affiliatex.com/affiliatecode1" with your affiliate link
- If you need more, just duplicate any of the "if" lines and change the details.
Adding links to your pages:
Based on the example above, you links will be:
www.yoursite.com/goto/go.php?m=affliatename1
www.yousite.com/goto/go.php?m=affliatename2
www.yoursite.com/goto/go.php?m=affliatename3
If it doesn't work, you've got a typo.
HTH