Revenue Robot

How to Redirect a Website with PHP

January 15th, 2009   | Filed in: Blogging, Make Money

Have you ever wondered how you end up on an affiliates page but, you click a link that looks like it’s part of the site / blog you are on… Well below I show you how that is done. Take my site as an example of what the URL would look like…

http://www.revenuerobot.com/go/offer.php

You’ll notice it a lot more on some of the big name Make Money Online Blogs (MMO). It’s like their way of stopping you from removing their affiliate ID. Because, once that is removed they won’t make any money off of you from signing up or purchasing something. The PHP website redirect also helps to work around some PPC campaigns and I do mean only some… It allows you to directly link to an affiliate link rather then to link them to your site.

Well here is how you too can create a PHP redirect for your affiliate links and websites. Just follow the detailed instructions shown below.

  1. Create a new folder where you have your website / blog hosted call it “go“.
  2. Create a new html file.
  3. Clear everything off the html file… so no code is shown!
  4. Next past this code: <?php header( ‘Location: http://www.yoursite.com/affiliate_offer.html’ ) ;?>
    On the above code make sure to replace the mock link I have placed there with your affiliate link!
  5. Now save the file as “offer01.php” in the “go” folder you created.
  6. If all is done correctly your URL should look like “http://www.yoursite.com/go/offer01.php
  7. So once you click the URL it should directly go to your affiliate link.

If you have any questions about this post please feel free to leave a comment.





RELATED POSTS


COMMENTS AND PING BACKS

Revenue Robot This post currently has one comment with 1,635 views.
Do you have any suggestions?
Add your comment. Please don't spam!
Subscribe to my feeds | Subscribe to post comments

PING BACKS

  1. Revenue Robot | How to do a 301 redirect for a website

POST A COMMENT

Want a personal icon with your comments? Sign up for a Free Gravatar Now!





Topic Tags: , , , , , ,