WordPress V2 REST-API: Endpoints 404?

Try changing your permalinks structure. Within the dashboard go to Settings > Permalinks and select the Post Name structure. When this is done click Save Changes.

If Post Name is already selected, it might be worth clicking save changes again to reset the permalinks.

Update: Per the comments below, WordPress does not, out of the box, ship with a .htaccess file for its frontend application. When you change permalink settings, WordPress will attempt to write out a .htaccess file for your . If it doesn’t have permission, the UI will update with a notification saying so, and you’ll be able to find the required rules at the bottom of the page.

Leave a Comment