rest_no_route error
-
Hi,
I’ve been using Contact Form 7 here and get an unpredictable recurring error when testing out submitting a form:
{“code”:”rest_no_route”,”message”:”No route was found matching the URL and request method.”,”data”:{“status”:404}}I have tried deactivating all other plugins and its still an issue. When resaving Permalinks this can temporarily fix the problem but eventually gives the same error when testing the form further. The form can also still work in general sometimes but its not clear what suddenly allows that. The unpredictability of the error makes it very difficult to troubleshoot.
While trying to troubleshoot it with AI it recommended:
Request your host to add or verify the following configuration snippet for your domain’s NGINX server block:
Nginx
location / {
try_files $uri $uri/ /index.php?$args;
}
location ~ /wp-json/ {
rewrite ^/wp-json/(.*)$ /index.php?rest_route=/$1 last;
}My host has asked to confirm this with the plugin creator before making this change however. It would be great if you have any advice to help resolve this issue and if it could be a plugin issue or is something I should be chasing up with my host?
Thanks,
Thomas
The page I need help with: [log in to see the link]
The topic ‘rest_no_route error’ is closed to new replies.