I like the article, but myself am having a problem with the combination of apache RewriteRule and the POST method. I have found a number of online articles saying it is not possible to accept post data when using apache RewriteRule because it causes a redirect and post data is lost. But, obviously, you and everyone else writing RESTful APIs (as you’ve coded above) gets this to work just fine. I, however am losing post data during the rewrite despite using pretty much your exact code just to see where I was going wrong. Perhaps there is some other apache conf setting somewhere higher up that is causing the problem but I haven’t found that yet. In fact, I had been just using the $_POST array as always, but tried your [code] file_get_contents(“php://input”);[/code] method above with no luck. Any thoughts on what I must be doing wrong would be greatly appreciated.