'Wordpress REST API 404 on Site Health

need some help. Just copied a Wordpress installation from firstwebsite.com/website(First site) to Wordpress.com(Second site) and the Site health tells me there's an error with the REST API"

The REST API encountered an unexpected result Performance

The REST API is one way WordPress, and other applications, communicate with the server. One example is the block editor screen, which relies on this to display, and save, your posts and pages.

The REST API call gave the following unexpected result: (404)

{"description":"","hierarchical":false,"name":"Posts","slug":"post","taxonomies":["category","post_tag"],"rest_base":"posts","_links":{"collection":[{"href":"https:\/\/wordpress.com\/wp-json\/wp\/v2\/types"}],"wp:items":[{"href":"https:\/\/wordpress.com\/wp-json\/wp\/v2\/posts"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}

Im using CPanel.

Thanks for any help or tips anyone can provide.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source