Skip to content
This repository has been archived by the owner on Sep 24, 2018. It is now read-only.

Always 404 on Multisite #1164

Closed
bueltge opened this issue Apr 30, 2015 · 6 comments
Closed

Always 404 on Multisite #1164

bueltge opened this issue Apr 30, 2015 · 6 comments

Comments

@bueltge
Copy link

bueltge commented Apr 30, 2015

The current develop branch create only 404 on requests, if is active in a multisite installation. I tested if is network wide active and also single activation, only one site in the network. The same installs and scenarios works with the master branch.

/wp-json/posts/create this result:

[
    {
        "code": "rest_no_route",
        "message": "No route was found matching the URL and request method",
        "data": {
            "status": 404
        }
    }
]

I have also update the permalinks after each switch for test this.
WordPress version is 4.3-alpha-32329, update from github version.
PHP Version: PHPv 5.5.9-1ubuntu4.9

@danielbachhuber
Copy link
Member

The new route is /wp-json/wp/v2/posts

@bueltge
Copy link
Author

bueltge commented Apr 30, 2015

Thanks for the fast reply!
Will you leave this after release or switch back to default path?

@danielbachhuber
Copy link
Member

Will you leave this after release or switch back to default path?

The path will likely switch when the plugin is integrated into core, but all paths will be prefixed from this point forward.

@bueltge
Copy link
Author

bueltge commented Apr 30, 2015

Thanks for the answer. Is the prefix wp-json not enough? Which goal is the string wp inside this path?

@rmccue
Copy link
Member

rmccue commented May 1, 2015

The wp is the route namespace, so wp is for the core routes that we bundle. Something like Jetpack e.g. would use /wp-json/jetpack/v3/... instead

@bueltge
Copy link
Author

bueltge commented May 1, 2015

Thanks a lot, now is understanding from my side.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants