Getting 404 error when trying to access JSON API from localhost
-
I’m trying to access the JSON API from a localhost installation but keep getting a 404 error. I’ve changed the permalinks to something other than plain (one suggestion), and I’ve chmod’d the wp-content to 777 (another suggestion). Perhaps it’s my URL?
I’m trying to access
http://localhost/wp/v2/postsand I get 404
Someone suggested
/wp-json/wp/v2/but that didn’t work either.
http://localhost/wordpresspulls up the WP page just fine.I am running this under MAMP Apache on MacOS. WP 5.1. Any help much appreciated!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Getting 404 error when trying to access JSON API from localhost’ is closed to new replies.