Affiliate Links -- Create And Implement A PHP Redirect.
byon 01-14-2010 at 06:32 AM (25468 Views)
Implementation of a php redirect will allow you to more easily manage your website's affiliate links. All of your outbound links to a particular room will direct to one url. Therefore, you can change all of the affiliate links...for one room...at any given time via one file.
4 Easy Steps I use to Create the PHP redirect file
1. I create a new folder in my websites root directory, i typically like to call mine "go". The name of the folder is not important unless there are language issues with a wordpress plugin your using in which case you'll need to use more than 2 letters to name the folder. You can call it "visit" or "room" or "out" or whatever you like.
2. I navigate to my websites robots.txt file and enter this line:
*Disallowing my /go folder will prevent my redirect files to be crawled and safeguard me from boosting the search engine visibility of whatever revenue source i'm linking to. This is important because affiliate sites will often link to programs 5 or 6 times on any given page for conversion power.Code:Disallow: /go
3. I navigate back to the /go folder, create a php file, and name it for my particular room. In this case i will create a file for PokerStars and name it pokerstars.php.
4. I open the pokerstars.php file and enter this code with my affiliate url.
...Now that i have my pokerstars.php file created, every time i link to pokerstars from my website i will link this url:Code:<?php header('Location: http://www.pokerstars.com/?source=1234567'); ?>
...the html code i typically like to use is:Code:http://www.onlinepokered.com/go/pokerstars.php
Code:<a href="go/pokerstars.php" target="_blank" rel="nofollow">Pokerstars</a>
This method will also completely insure that you are not giving search engine power to the online poker room, rake provider, training community, or other revenue source which you are linking to. After all, why would you want to contribute to your revenue source ranking better?
Total Trackbacks 0