How To Create a Redirect Page

| by Paula Brett | pix How To Create a Redirect Page

 

I’ve had quite a few people ask me lately how to create redirect pages for affiliate links.

It’s not a pretty sight when you have to send your customers to websites through links like this:

http://www.somesite.com/??347rygdt=asap??376dyyyd/youraffiliatelink=??4635

So, here’s a couple of simple ways to do this – in these examples we’re sending a customer to a product called Decorate an Easter Egg (keeping it topical, see icon wink How To Create a Redirect Page )


1. Create a folder in your public_html and call it, say, recommends

2. Open up your favourite HTML editor and create a new page

3. In the code view, delete everything and cut and paste in the code below


<?php $URL=”http://www.youraffiliatelink.com”;

header (“Location: $URL”);

exit();

?>

4. Click File, click Save As and save the page as Decorate-an-Easter-Egg but make sure you save it as a .php file, this is very important – if you save it as an .html or .htm file it will not work)

5. Upload this new page How-to-decorate-an-Easter-Egg.php to the recommends folder you just created in your public_html folder

6. When you want to share your link with your subscribers, or add it to an email, you will simply type

http://www.yourdomainname.com/recommends/Decorate-an-Easter-Egg.php

and your customers will be redirected to the affiliate product’s sales page using your affiliate link

Alternatively, you could create a folder in your recommends folder called, say, Decorate-an-Easter-Egg

When you create your new page with the redirect code above, instead of calling it Decorate-an-Easter-Egg.php you could just call it index.html or index.htm , then upload it to the Decorate-an-Easter-Egg folder so you would send your customers to

http://www.yourdomain.com/recommends/Decorate-an-Easter-Egg

Because the only page in this folder will be an index page, directing people to the Decorate-an-Easter-Egg folder will automatically bring up the index.html redirect page

If you celebrate Easter, I hope you had a nice one!

Very best wishes

Paula