I am trying to redirect any location that gives 404 to the front page and change the response code to 302.
According to nginx documentation this should be possible?
https://nginx.org/en/docs/http/ngx_http_core_module.html#error_page
But I keep getting 404 with the old 404 page. Caches are cleaned, cloudflare is in development mode and purged.
What am I doing wrong?
server {
...
error_page 404 =302 https://example.com/home/;
...
curl
maybe