How To Redirect An Affiliate Link Through Your Website
I just received a question: how to redirect an affiliate link through your own website.
I do this with what is called a 301 redirect. It is very simple. Let’s say I want to create a link that looks like this:
http://www.flamillion.com/recommends/pf-comment-tool
I own the site www.flamillion.com and the above link, when you click on it, will take you through to my affiliate link for Comment Kahuna. My naked affiliate link for this product is: http://www.commentkahuna.com/103037
This is all I have to do:
1. Create a Text file in Notepad containing the following 4 lines of code and nothing else (obviously you would change the URL in there for your own affiliate link, but be sure to leave the quote marks where they are):
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.commentkahuna.com/103037/" );
?>
2. Then I save it, naming the file: index.php
3. In my FTP client, open up my site www.flamillion.com
4. If I haven’t done this before, create a folder in this site called: recommends
5. Within the folder called recommends, create a new folder called: pf-comment-tool
6. Upload the file index.php into that new folder.
So the file is now live on the internet. Its full path is
http://www.flamillion.com/recommends/pf-comment-tool/index.php
but since web browsers automatically pick up the index file in every folder, all you need to give out is the folder name,
http://www.flamillion.com/recommends/pf-comment-tool
Thanks for the question Gina!
Related Posts
Filed under: Affiliate Marketing




Great! Thanks so much Rosie.
I’ve played with software that promised to do this but it was just too time consuming when I needed to get things done.
Appreciate it:)
Hello Rosie,
thanks very much for your advise. Now how would you suggest me going with 3 or 4 affiliate links?
Would please bring an example for 3 or more different affiliate links as I noticed that since I started to purchase your articles you wisely done everything for me, but I am not sure how I could do with redirects to 3 or more links, please.
Kind regards
Michael.
Michael, you just do the same thing each time, creating a new folder with a different name for each affiliate link.
So I have the index file in the folder called
http://www.flamillion.com/recommends/pf-comment-tool
redirecting to my affiliate link for Comment Kahuna (this is the example given above).
I also have the index file in the folder called
http://www.flamillion.com/recommends/126ebooks
redirecting to my affiliate link for a PLR ebooks offer.
And I have the index file in the folder called
http://www.flamillion.com/recommends/mnf
redirecting to my affiliate link for Micro Niche Finder.
Etc. Hope that helps!
Hi site owner might I use some of the information from this article (paragraph exerpt) if I provide a trackback to your site? Thanks either way, and hope you have a wonderful day! take care!
Hi Kendrick, yes that is OK if it is attributed with a live link to this site.
Best regards, Rosie