amazon

Rewrite Amazon product links using jQuery, RegEx and PHP

Posted by Jeff Beeman on Sun, 11/22/2009 - 20:56

Over at Gamers With Jobs we wanted to rewrite any outbound Amazon product links so that they include the GWJ affiliate ID (every little bit counts when you're a community site). Deciphering Amazon's generally bloated URLs can be tricky, as can knowing what exactly is required when building a link to a product page. So, I cobbled together a couple different pieces of info into a pretty simple solution that I thought I'd share.

Subscribe to amazon