Just installed wordpress all wp-json calls fail with 404
-
Just installed a new WP on Centos 9. From the moment I installed WordPress, all calls to wp-json return a 404. The wordpress generated .htaccess file with 660 permissions in in the document root.
If I run “https://www.billguldenschuhimaging.com/?wp-json/wp/v2/pages”, and while a tab is logged into the site ad the administrator, from my browser at home I get taken to the sample page with the bird flying across it. if, again logged in as the admin, I try to create a new page all wp-json calls fail with a 404 error a sample call pulled from the httpd SSL access log is as follows:
[16/Jan/2023:15:39:03 -0500] “GET /wp-json/wp/v2/templates/twentytwentytwo//page?context=edit&_locale=user HTTP/1.1” 404 196
[16/Jan/2023:15:39:03 -0500] “GET /wp-json/wp/v2/users/me?context=edit&_locale=user HTTP/1.1” 404 196I am baffled as to how a manually typed wp-json call can work, but one generated by WordPress itself fails.
Can someone provide any additional things to check?
Now for reference, I have another site that was deployed a few years ago on Centos 8 and has been kept upgraded to current, and the wp-json works just fine over there.
Obviously, something is being missed in this new deployment, but I have run out of things I know to check.
ANY assistance will be appreciated.
- The topic ‘Just installed wordpress all wp-json calls fail with 404’ is closed to new replies.