• Resolved BackuPs

    (@neo2k23)


    i get a rest api js error even with rest turned off in the settings of the yoast seo plugin

    https://mydomain.nl/wp-json/wp/v2/

    404Not Found

    if i turn off the yoast seoplugin the issue is gone.

    How can i fix this?

    I also have 404 pages on preview.

    if i revert to 20.5 the rest api js 404 message stays but the 404 on preview is gone. Something is really gone bad here.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @neo2k23

    Thanks for using the Yoast SEO plugin. /wp-json/wp/v2/ is a WordPress native REST API. It cannot be controlled (ON/OFF) from Yoast SEO Rest API settings. On the other hand, Yoast SEO has its own REST API endpoint, which can be accessed as wp-json/yoast/v1/get_head?url=" " . So turning OFF the REST API settings actually turns off the Yoast REST API endpoint only. But not the WordPress native REST API.

    Also, turning ON the REST API settings in our plugin append two additional fields to these responses: yoast_head and yoast_head_json that returns SEO metadata for the URL. You can learn more here.

    It’s unclear why you could be receiving the 404 error but often, we see problems occur in combination with another plugin or theme. The fastest way to rule out any conflict is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty-Two.

    Please test this on your development or staging site if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.

    If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts

    If you feel uncomfortable doing this yourself or if this does not solve your issue, our Yoast SEO Premium plugin comes with one year of (technical) support.

    Thread Starter BackuPs

    (@neo2k23)

    Please close it was a combo between wpseo and another plugin. Thank you

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Rest api js error’ is closed to new replies.