The easy way to hide your affiliate links – Part I

By Affmarketer Under Featured

NOW ON EBAY.
[phpbay]handbags, 3[/phpbay]

If you want to succeed in affiliate marketing, you will need to hide your affiliate links. I know a lot of affiliates that do not mind hiding the ugly affiliate links which may cost them a lot of stolen affiliate commissions.

Sometimes advertisers display its affiliate links into something like this

http://www.whateveraffiliate.com/cgi-bin/dir/go.cgi-123456

Instead of having a short link like this

http://www.whateveraffiliate.com/suggest.html

To solve this problem, you have to hide your affiliate links. There are a lot of ways to hide your affiliate links and some can be done as easy as copy/paste. I have here Part I of a series of two parts.
1. .htaccess

If your server is running on linux, .htaccess file is located in the same folder as your index.html or index.php files. You can create one.Open it up and move to the bottom of that file and type this in:RewriteEngine on
RewriteRule^name.php$ http://www.whateveraffiliate.com/cgi-bin/dir/go.cgi-123456 [R]

Rewrite Engine on simply turns on the mod rewrite program and it will redirect to the affiliate link.

2. The PHP Redirect

This requires a server running on Linux. There are a lot of ways to do this method, but I have here the easiest way.

Create a txt file and type this in:

<? header(“Location: http://www.whateveraffiliate.com/cgi-bin/dir/go.cgi-123456″); ?>

Save this as php file (name.php). Name.php file will redirect to http://www.whateveraffiliate.com/cgi-bin/dir/go.cgi-123456. You will need to upload this new file and create each for every affiliate program you are joining.

3. The Javascript redirect

This method will only work if javascript on browser is enabled.

<a href=”http://www.mydomain.com” onclick=”parent.location.href=’http://www.whateveraffiliate.com/cgi-bin/dir/go.cgi-123456′; return even.return Value=false”>Affiliate Name</a>

4. The HTML Redirect

Perhaps the easiest way to hide your affiliate links, simply create a name.html and type this in.

<html>
<head><title>This one rocks</title>
<meta http-equiv=”refresh” content=”0; url=http://www.whateveraffiliate.com/cgi-bin/dir/go.cgi-123456″>
</head>
<body>
Affiliate links are hidden.
</body>
</html>



Related Posts

  • No Related Posts

Add a comment

  • Avatars are handled by Gravatar
  • Comments are being moderated