Switch from /wp-json.php to a different location #46

rmccue opened this Issue Dec 8, 2013 · 2 comments


None yet
2 participants

rmccue commented Dec 8, 2013

For maximum server compatibility, we need to switch from using /wp-json.php, as some server setups cannot handle this correctly.

One of my nginx setups parses /wp-json.php/posts and tries to load wp-json.php directly without falling back to index.php afterwards. This could be an error on my end, but I'd bet it's fairly common.

The original point of this was to ensure that the API endpoint was always at the same place, even once merged (and assuming that wp-json.php gets dropped into the WP root directory). However, with support for RSD (#40), this isn't an issue. I'd rather we change it now in that case.

I think /wp-json/ should be a fairly non-conflicting endpoint (with /wp-api/ to be used eventually per #34).

maxrice commented Dec 8, 2013

Somewhat related to this, I'd strongly recommend placing a version number after the endpoint, like /wp-api/v1/ so future breaking changes can be implemented while maintaining backwards compatibility with earlier versions.

rmccue self-assigned this Mar 4, 2014


rmccue commented Mar 4, 2014


rmccue closed this Mar 4, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment