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/posts
and also goes 404).