REST API goes 404 in 6.6.1 version
-
Hello folks,
I just created a website for a new project of mine where I need to use the REST API to post on a fresh Wordpress instance.
I installed Wordpress Dev, but if I go to https://SITEURL/wp-json/wp/v2/posts it gives an ugly 404 error as shown

I tried with other WP installs I have and this is the only one that gives 404. I re-installed 6.6.1 and still the same error.
I gave up trying to understand what is going on. Any hint?
-
I think you have to enable permalinks aka "rewrite structure" in wordpress. See https://stackoverflow.com/questions/49858884/wordpress-rest-api-returning-404 . Settings -> Permalink in WP.
-
@joseph Yeah, I also checked that. This is a fresh install and I double check the permalink setting and it's on Plain. Still 404. (I also checked
/index.php/wp-json/wp/v2/postsand also goes 404).
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login