Fix rewrite rule affecting API call
Merge pull request #1 from joelchen/master

Fix rewrite rule affecting API call