Warning: file_put_contents(): Only 0 of 8322 bytes written, possibly out of free disk space in system/classes/filecache.php line 154
Warning: file_put_contents(): Only 0 of 303 bytes written, possibly out of free disk space in system/classes/filecache.php line 157
Thought-Free Amazon Affiliate Linkage - RedAlt

I've been using a little trick on my blog to link to items at Amazon with my affiliate code for quite some time, and although there are probably tools that would let you select products more easily, I've found that I like convenience and brevity of my method well enough.

I simply add this new rewrite rule to my root .htaccess file:

RewriteRule ^az(.*)$ http://www.amazon.com/exec/obidos/ASIN/$1/asymptomatic-20 [R,L]

My affiliate code is "asymptomatic-20", which you can easily replace with your own. (Or not!)

Then, to create a link, use whatever linking method you usually use, but instead of including a full Amazon affiliate link, simply copy the ASIN or ISBN of the item, and put "/az" in front of it. So to create a link to the PHP 6 and MySQL 5 for Dynamic Web Sites: Visual QuickPro Guide, just link to: /az032152599X

Simple enough. Perhaps I should write a Habari plugin that does this and includes a Silo so that product search can happen inside the Habari admin. Ah, a future project.

Comments

There are no comments on this post.