Use PHP to Redirect Affiliate Links
Posted by: admin in Affiliate Marketing, Web Development Tags=Coming to you straight from clickconsultants.com is a quick run through on how to use PHP on your affiliate website to Redirect all of your Affiliate Links. There is much debate on the different ways you can accomplish this task. This article just explains the PHP way to do it. This method allows you to control several affiliate links on your website from one location. Much easier to manage. Follow me!
If you hovered over a link using this method, you’d most likely see a URL that looks like this…
http://www.clickconsultants.com/goto/wordze.php
or
http://www.clickconsultants.com/recommend/wordze.php
So let’s explain how this works. The first thing you need to do is log into the FTP of your site and create a folder. You can give this folder the name goto, recommend, or whatever else you may feel works well for your site. The next step is to open up notepad or any other simple text editor and add the following code to it
<?php
header( 'Location: http://www.youraffiliateurl.com/' ) ;
?>
You would of course replace www.youraffiliateurl.com with the actual site or affiliate offer that you want. Next, you simply save this file using whatever name you want that would describe it. For example, I could link to Wordze and save the file as wordze.php. Next, upload the file into the folder your created above. You know have a link which would look something like this.
http://www.clickconsultants.com/goto/wordze.php
You can then use this link in all your articles, landing pages, etc and if you ever need to change the affiliate url, you would simply open up the wordze.php file and change the link, thus, allowing you to change the link across your entire site instantly.







Entries (RSS)