Let's say we want to direct people to your WA affiliate link:

http://www.wealthyaffiliate.com?a_aid=0dWRnU6x

The name of your site is http://www.yoursite.com. We will use this for all examples.

To direct people using:

http://www.yoursite.com/wealthyaffiliate

Create a directory (folder) on your site named wealthyaffiliate. This folder must be created directly under your root folder, mysite.com.
In that folder, create a file named index.php. Put the following code into the index.php file:

< ? php
header( 'Location: http://www.wealthyaffiliate.com?a_aid=0dWRnU6x' ) ;
?>

Now you can use http://www.yoursite.com/wealthyaffiliate
to direct people to WA using your affiliate link.

Or you can also use
http://www.yoursite.com/wealthyaffiliate/index.php
I don't think you would want to, but you could..

Check out Example 2 for a different method.
IMPORTANT: In the example above, I had to use spaces between the < ? php code in order to get them to appear in this tutorial. If you put up a page using this code, there should be NO SPACES there.



Join the Discussion
Write something…
Recent messages
katec Premium
Thanks for the great info! One question I had was how can you then use this PHP to track where your clicks actually came from? For example, if you were promoting the Strip That Fat campaign and you had multiple signatures in different weight loss forums, then how can you determine where which forum resulted in more clicks and which converted the best? Thanks!
Reply
Fred Premium
Your root folder is your domain name folder. If your domain name is mysite.com, that is the root folder.

In the case of the http://www.mysite.com/recommends example, then mysite.com/recommends is the root folder. I had to have some way of referring to this folder, so I just used "root folder" for the example.

Fred
Reply
richard.sauseda Premium
Your root folder is your domain name folder. If your domain name is mysite.com, that is the root folder.

In the case of the http://www.mysite.com/recommends example, then mysite.com/recommends is the root folder. I had to have some way of referring to this folder, so I just used "root folder" for the example.

Fred
Reply
rcarney6 Premium Plus
Thanks for the idea.

How do you find your root folder?

I mean: do you go to "view source"? If so, where do you find the root folder. If you don't go to "view source," where do you find it?
Reply
SJ Premium
Thanks for the idea.

How do you find your root folder?

I mean: do you go to "view source"? If so, where do you find the root folder. If you don't go to "view source," where do you find it?
Reply
Top