View Single Post
Old 08-24-2007, 05:27 AM  
ionic
Confirmed User
 
Join Date: May 2005
Posts: 443
Tip: Affiliate link redirects - Earn more money

It's friday and im in a good mood so thought i'd share this little tip with for any blog owners/site owners that have a lot of affiliate links on their pages.

If you aren't already redirecting them, well you should be and here's how:

Create a PHP file with the following code and your desired affiliate code/text.

PHP Code:
<?php

$path 
= array(
    
'reality-kings' => ' http://www.realitykings.com/main.htm?id=fapgallery&p=clean',
    
'college-fuckfest' => 'http://signupsb.triplexcash.com/cgi/click?account=560307&site=2&program=2'
    
);

if (
array_key_exists($_GET['id'], $path))
    
header('Location: ' $path[$_GET['id']]);

?>
Save it as link.php

Then in your .htaccess file (create one if you dont have one) add:
Code:
RewriteEngine On
RewriteRule ^link/([/_0-9a-zA-Z-]+)$ link.php?id=$1
Now in this example i used a realitykings.com affiliate link with the anchor text reality kings.

To include that link on my pages i would just add a link to:

http://www.domain.com/link/reality-kings

When clicked that will redirect to the sponsor link

Remember to block the /link folder in your robots.txt file

Benefits of this technique:

1. SEO benefits - google isnt fond of too many affiliate codes on landing pages and it also helps prevent bleeding or diluting of your pagerank score.

2. Prevent any pc tools or other malware stripping out or replacing your affiliate code.

3. Earn more money!
for example today's nastydollars bonus day all i did was alter a few URL's in the link.php file and now all my inthevip/vipcrew/ links all go through the reality kings tours.

Tomorrow i can just re-edit that file rather than the 100's of hard coded links on my sites.
ionic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote