I'm customizing another plugin by changing the rewrite rule, from:




After making the change (and not forgetting to refresh the permalinks) my endpoint fails to work. When I attempt something like:


...instead of the json object that should be returned, I get the user login form. enter image description here

What's even weirder is that when I add an integer to the end like this:


...I get the json object that I expect! What's going on here?

  • 1
    it would seem your rewrite hasn't flushed. there are plugins, like this one, that will let you see how the rules are being parsed. verify your rule is what you expect.
    – Milo
    Jul 31, 2012 at 1:44
  • That's a nifty plugin. However, it shows the newly updated rewrite rule. Jul 31, 2012 at 14:21

1 Answer 1


So I've solved this problem, but I'm still scratching my head about the "solution":


This version of the rewrite rule works for some reason. I'm guessing that there's some sort of namespace conflict that I accidentally stumbled across. Maybe /auth/ is used somewhere else?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.