How to hide your affiliate link with redirects

A redirect is when you visit a particular page or website and it automatically forwards you to a different address. In this lesson we show you how make your affiliate links safer and friendlier by investigating how to hide your affiliate link with redirects.

Why create redirects?
1) It looks friendlier
Instead of putting your (rather unfriendly) affiliate link into a page, you can create another page on your site that automatically redirects to your affiliate link. Then when you want to send people through your affiliate link, you can provide them with the (much friendlier) address of your redirect page on your website. This means that you can put this address inside emails/newsletters and it will look much more attractive to your readers. For example:
could become

Instead of trying to send people to your ugly affiliate link (, you can instead send them to the non-intimidating address. This page automatically redirects to your ugly affiliate link anyway, but your visitors never have to look at it.

2) It can reduce commission hijacking
Redirects are also a useful way of “cloaking” your affiliate link so that other people don’t see it and think, “hmm… I could click on this affiliate link, or I could join the program and click through my link instead and get the commission myself!” Redirects make your affiliate link less obvious to other affiliates.

3) They can save you a LOT of editing later!
By diligently setting up redirects for all your affiliate links, you’re safe if the merchant ever changes their affiliate network or affiliate link system. You’ll just need to change the link in one place, instead of going through all your web pages and newsletters to change the links. If you set up redirects for ALL products, not just affiliate products, you’ll also be able to easily add an affiliate link if an affiliate program ever becomes available for that product. Handy!

Easy affiliate redirects with AffiloTheme
The easiest way to do this by far is with AffiloTheme. If you don’t have AffiloTheme, you’d need to get it on your website in order to create your affiliate redirects this way.
Basically, you just go to the Affiliate Redirects option in the AffiloTheme menu in WordPress.

Using PHP redirects

The easiest way to do it is to simply paste the following snippet of code into a blank web page, and change it to point to the page you want to redirect to (which will usually be your affiliate link).




IMPORTANT: This code needs to go directly into your HTML in source view, and it must go into a completely blank page: There shouldn’t be anything else on the page, not eventags. You also need to save the page as a .php file.

Meta Tag redirects:

Another method you might see is the meta refresh. It looks like this:




In this piece of code, the URL is the address you want to redirect to, and the “content=”0; refers to the number of seconds the page should wait before redirecting. In this example, “0” means the page will redirect instantly.

This method is slower than the PHP method, but it allows you to add a message to the page if you want. Redirect pages traditionally have a “if this page doesn’t redirect in 5 seconds, click here” message to be nice to older browsers. These days it’s not really necessary, (and not really desirable for affiliates) – you’re better off sticking with the faster PHP method.

Lesson Summary

In this lesson  we’ve taken a look at some reasons for using affiliate link redirects, including:

  • It looks friendlier
  • It can reduce commission jacking
  • It can save you a lot of editing later

We also looked at two ways you can create affiliate link redirects, including:

  • Using PHP redirects
  • Using Meta Tag redirects



A quick note about the reviews on this site: I am an affiliate for every product I review. The vendors of these products give me them without charge in order for me to test them. However all my reviews are done as honestly as possible and I make no promises to the vendor prior to writing my review. Should you click a link on this site that takes you to a paid product this link will be an affiliate link and I will be paid a percentage of the sales price should you decide to purchase that product.
Print Friendly, PDF & Email

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.