• Feb
  • 19

Nice looking affiliate URLs directly from your blog

Here's another quick tips for the 'Custom slug, custom page' plugin. Do you have any affiliate offers on your blog? Want a quick way to mask the ugly affiliate URLs?

Stage 1

Install the Custom Page plugin. You can download it from this page: http://aciddrop.com/2008/02/16/wordpress-plugin-custom-page-slugs-with-custom-content/

Stage 2

Once you've installed the plugin, go to Options | Custom Page | New Page.

  • For the slug, enter the URL you would like your visitors to see
  • For the content enter this code:
    header( "HTTP/1.1 301 Moved Permanently" );
    header( "Location:http://www.affiliateurl.com?trackingid=78236374637");

    Enter your own Affiliate URL in place of my example above.

Click submit!

That's it.


Here, try this lovely link: http://aciddrop.com/free-remote-pc-access

Advanced tip

You can easily include some tracking to store a record of how many times the link was clicked, the page it was clicked on, the browser, the user's I.P etc. Just create a database table in your Wordpress DB to include the relevant info, then insert it into the database before the redirect.

More cunning plans

I've got a few more cunning uses of the plugin to come, so make sure you subscribe to my feed to stay up-to-date!

Related posts

Posted by admin in php, tutorials, wordpress

  • Feb
  • 19
Dwayne Charrington

Wow talk about awesome. I am definitely going to implement this into my blog right now. Thanks!

- Dwayne Charrington.

Comments are closed