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:

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/Rosie

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/Rosie/" );
?>

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!

Give Your Online Business An Unfair Advantage
Portal Feeder is OPEN RIGHT NOW (June 2009) for a limited time only ... giving you a chance to grab all the tools that will take your business to the top. Join Portal Feeder now and check out the bonuses and the brand new 14 Days To Profits program!


Related Posts

One Response to “How To Redirect An Affiliate Link Through Your Website”

  1. 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:)

Leave a Reply