WordPress – REST API 404 error

I installed WordPress 5.3.2 and using the TwentyTwenty theme for this non profit I joined. I was trying to make a new Page and save but it kept complaining the REST API call failed and the page would not save.

The REST API call gave the following unexpected result: (404) Not Found The requested URL /wp-json/wp/v2/types/post was not found on this server.

Looked at Tools->Heath Check and noticed that I missed some php lib. After installing the libs that did not fix the error either.


You likely changed the Settings -> Permalink

I had changed it to just post. Once I changed it to custom


the API error went away and verified that the heath check passed too.



This entry was posted in WordPress. Bookmark the permalink.

3 Responses to WordPress – REST API 404 error

  1. vemmans says:

    This error is because URL rewriting is not enabled or misconfigured in apache.
    An a2enmod fixed the error for me

  2. dayrisesolarenergy says:

    The Fix explained here helped me to resolve 404 issues on my website. All 404 errors wiped off as soon as I changed the permanent structure to Custom. Thanks a lot. It has been a life saver.

  3. Javad Ali (Caz) says:

    Thanks! This helped!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s