WordPress fix-up : rest API gives 404

This showed up in WordPress’s Dashboard : Site Health Status. The actual message was along the lines of “When testing the REST API, an unexpected result was returned”.

I Googled this together with “Ubuntu 20.04”, and found the following useful info: https://stackoverflow.com/questions/49858884/wordpress-rest-api-returning-404

Changing /etc/apache2/apache2.conf from:

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride None
        Require all granted
</Directory>

To:

<Directory /var/www/>
        Options Indexes FollowSymLinks
        AllowOverride All
        Require all granted
</Directory>

Fixed the problem in the Site Health Status area.


Posted

in

,

by

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *