I learned from John Chow on how to hide affiliate links with php redirection. I even moved all my affiliate links to a sub folder just like he did. We know how much people hate clicking on your affiliate link even when they are interested in the product. They will just find a way to remove your affiliate id. The problem is the php redirection to hide an affiliate link is pretty common nowadays. People can tell just by looking at the URL.

I am not sure whether it has been done before but I just want to say it on the record I thought of it myself. I am sure I am not the first to do it.

Let’s take it for an example. My old CashCrate affiliate link was http://www.joefiro.com/links/cashcrate.php. And my new link is http://www.joefiro.com/cashcrate/. The link looks cleaner and more professional and it blends in well with the rest of the URL on my blog.

What do I do differently? Not much really. I created a sub-directory called cashcrate and copied the cashcrate.php into that directory and renamed it to index.php.

The reason why I said copied instead of moved is because I want to leave the old links intact. Google has probably indexed that links or perhaps some people have bookmarked them; not to mention my RSS reader still have my old links on it. I want the links to still be available when someone use the old links. So for now, I will leave the old php files alone in the links sub-directory.

What I am going to do is replaced the old affiliate links in my article with the new affiliate links. 😉

And how do you create the php files? You should pay a visit to John Chow and get a copy of his e-book. It will teach you how to do it.

P.S. If you think your affiliate links might change (thanks to TLA), you can always modify your old php files to have it point to your new affiliate links so you don’t have to maintain 2 files for the same affiliate.

Related Posts