Pages



Redirect Links

It is a very simple to redirect an affiliate link to a more manageable, easier to remember link. Also should the link change for some reason, it also can be quickly changed.

We will using PHP to make the redirects.

Let's say you have an affiliate link that looks something like this... http://www.fiercewebsites.com/ndex1.asp?btag=m6411874mw7521

Someone asks you for your link. Instead of going to the trouble and hassle of finding it, you can quickly say "http://www.fiercewebsites.com/recommends/fierce-websites.php".

Here's all you need to do to accomplish this...

1. Put this code in "Notepad"

PHP Redirect Template

Put your link as shown here... "("Location:http://www.fiercewebsites.com/ndex1.asp?btag=m6411874mw7521")"

So your finished code would look like this... PHP Redirect Code

2. Save as something you can remember easily. For instance I would save the above file as "fierce-websites.php".

Make sure you save it as a php file. Lunarpages provides PHP, as I'm sure many web hosts do.

3. I recommend you make a special folder for your redirects. My folder is called "recommends". but you can name it anything you like. After you have saved the file, upload it using FTP to the folder you made (i.e. "recommends"). So when I want to put a link to the "fierce websites file" or tell someone to use my link I would use http://www.fiercewebsites.com/recommends/fierce-websites.php

4. Even though the Redirect Link Checker says the redirects are Search Engine Friendly, I asks robots to exclude following them. It is simple to change your Robots file. This is what ours looks like...

Robots Text File Disallow Files

Just save the file in Notepad as robots.txt and upload via FTP to your public_html folder.


Search

Search Engines