I've got a question for the mod-rewrite gurus out there :p
I've got a REST api built, I'm just working on the .htaccess mod-rewriting for some nice URLs.
I would like this... api.site.com/[contacts].[json]?location=[new york,NY]
To map to this... site.com/includes/api/v2/api_receiver.php?action=[contacts]&format=[json]&location=[new york,NY]
The parameters are in square brackets.
It's basically like the twitter API: http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-POST-lists
Any help is much appreciated :)