Affiliate Links -- Create And Implement A PHP Redirect.
Tags affiliate, seo, tips, webmaster tools
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.
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:
...the html code i typically like to use is:
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?
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:
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.
Code:
<?php
header('Location: http://www.pokerstars.com/?source=1234567');
?>
Code:
http://www.onlinepokered.com/go/pokerstars.php
Code:
<a href="go/pokerstars.php" target="_blank" rel="nofollow">Pokerstars</a>
*this exact setup is implemented and can be observed on Online Poker ED and CasinoReviews.com
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 Comments 6
Comments
-
Posted 01-17-2010 at 01:35 PM by pheal
-
You're welcome. I hope this post provides a worthwhile resource...and will become more widely implemented based on the notion that the disallowed redirect method:
1. Makes it easier to manage affiliate links.
2. Safeguards the webmaster from inadvertently boosting the search engine power of his or her revenue sources.Posted 01-25-2010 at 04:42 AM by addaminsane
-
mmm interesting
Posted 02-01-2010 at 09:50 AM by striker
-
Thats a great post!
Will do it too !Posted 04-01-2010 at 09:46 AM by casinokomplett
-
Posted 04-05-2010 at 02:03 PM by addaminsane
-
Hi,
I have been using your php redirect for a while now, it is a great way of reducing the workload when a link needs updating. Is there a similar way to create php files to contain bonus codes so that you can have a titancode.php, partycode.php etc file? And what do I need to enter in the articles to have the bonus code show there?Posted 08-07-2010 at 08:43 AM by Catfish
Total Trackbacks 0















