{"id":7,"date":"2023-05-15T22:29:52","date_gmt":"2023-05-15T21:29:52","guid":{"rendered":"https:\/\/e474.ddns.net\/blog\/?p=7"},"modified":"2023-05-18T15:22:06","modified_gmt":"2023-05-18T14:22:06","slug":"wordpress-fix-up-rest-api-gives-404","status":"publish","type":"post","link":"https:\/\/e474.ddns.net\/blog\/2023\/05\/15\/wordpress-fix-up-rest-api-gives-404\/","title":{"rendered":"WordPress fix-up : rest API gives 404"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">This showed up in WordPress&#8217;s Dashboard : Site Health Status. The actual message was along the lines of &#8220;When testing the REST API, an unexpected result was returned&#8221;.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">I Googled this together with &#8220;Ubuntu 20.04&#8221;, and found the following useful info: <a href=\"https:\/\/stackoverflow.com\/questions\/49858884\/wordpress-rest-api-returning-404\">https:\/\/stackoverflow.com\/questions\/49858884\/wordpress-rest-api-returning-404<\/a><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Changing \/etc\/apache2\/apache2.conf from:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;Directory \/var\/www\/&gt;\n        Options Indexes FollowSymLinks\n        AllowOverride None\n        Require all granted\n&lt;\/Directory&gt;<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">To:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">&lt;Directory \/var\/www\/&gt;\n        Options Indexes FollowSymLinks\n        AllowOverride All\n        Require all granted\n&lt;\/Directory&gt;<\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Fixed the problem in the Site Health Status area.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This showed up in WordPress&#8217;s Dashboard : Site Health Status. The actual message was along the lines of &#8220;When testing the REST API, an unexpected result was returned&#8221;. I Googled this together with &#8220;Ubuntu 20.04&#8221;, and found the following useful info: https:\/\/stackoverflow.com\/questions\/49858884\/wordpress-rest-api-returning-404 Changing \/etc\/apache2\/apache2.conf from: &lt;Directory \/var\/www\/&gt; Options Indexes FollowSymLinks AllowOverride None Require all granted [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,5],"tags":[6,7,3],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-blogging","category-wordpress","tag-apache","tag-blogging","tag-wordpress"],"_links":{"self":[{"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":4,"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":11,"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/posts\/7\/revisions\/11"}],"wp:attachment":[{"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/media?parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/categories?post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/e474.ddns.net\/blog\/wp-json\/wp\/v2\/tags?post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}