This repository was archived by the owner on Sep 24, 2018. It is now read-only.
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
Switch from /wp-json.php to a different location #46
Closed
Description
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).