• Resolved palabra0

    (@palabra0)


    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/posts

    and I get 404

    Someone suggested

    /wp-json/wp/v2/

    but that didn’t work either.

    http://localhost/wordpress pulls up the WP page just fine.

    I am running this under MAMP Apache on MacOS. WP 5.1. Any help much appreciated!

    • This topic was modified 7 years, 3 months ago by palabra0.
    • This topic was modified 7 years, 3 months ago by palabra0.
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.