Replies: 1 comment 2 replies
-
I don't think so but you could probably configure the server to use a custom 404 page for a specific directory. https://nginx.org/en/docs/http/ngx_http_core_module.html#error_page |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
On our site, if there is a missing image and you go to view that missing image it loads the standard 404 page.
This is because the image is loading as a special url, not as a file:
https://www.mysite.com/img/http/aHR0cHM6Ly93d3cudmFuY291dmVyY29udmVudGlvbmNlbnRyZS5jb20vaW1hZ2VzL2xvZ28tZGZkMDdhNzM5Y2NhNmQ2NDVkY2Y0NDg5OWIyNTQ5NWEuanBn?fm=webp&s=e9f5b9c14455c536af4be0228ddc3bb1
Is there a way to specify that if anything in the /img/ folder gets a 404 error, it would just return an empty 404 response and not load the 404 template?
Beta Was this translation helpful? Give feedback.
All reactions