• Resolved psym

    (@psym)


    Hi,

    I have installed the rest api plugin, activated it, and configured permalinks to pretty urls.
    The server returns a 4O4 when accessing the api however.

    Installation is a standard unzip of the downloaded tar.gz file from ww.wp.xz.cn.

    The site is deployed on localhost with an apache2 server (Mac).
    http://localhost/wp-admin is accessible, http://localhost/wp-json is not.

    Is it possible to provide some pointers as to why this is happening, or how to debug or trace?

    https://ww.wp.xz.cn/plugins/json-rest-api/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter psym

    (@psym)

    It seems apache complains the wp-json file cannot be found in the root folder:
    File does not exist: /Users/psym/wordpress/wp-json

    I suspect it has to do with mod_rewrite not being turned on.

    The plugin was installed via the wordpress admin interface btw

    Thread Starter psym

    (@psym)

    Couldn’t find anything wrong with the Apache config.
    Rewrite is on, AllowOverride set to all in httpd.conf root directory, and user conf
    to Allow from all.

    The .htaccess file is populated correctly when changing the permalink settings.

    What else can be the reason Apache is looking for the wp-json file in the root directory?

    Any help would be appreciated.

    Thread Starter psym

    (@psym)

    Setting AllowOverride to All in user conf solves this issue.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘wp-json not found’ is closed to new replies.