We are using Umbraco 7.2.4 and IIS 8.5, what is the right way to handle 404 and 500 errors?
The response should have right StatusCode. 404 works fine with Umbraco errors, what about 500 status code?
You can use a static error file in the root of the site (with it's own internal styles) and use the CustomErrors section of the web config to redirect to it.
500 Error Page
Hi,
We are using Umbraco 7.2.4 and IIS 8.5, what is the right way to handle 404 and 500 errors? The response should have right StatusCode. 404 works fine with Umbraco errors, what about 500 status code?
Thanks, Alex
You can use a static error file in the root of the site (with it's own internal styles) and use the CustomErrors section of the web config to redirect to it.
<customErrors mode="RemoteOnly" defaultRedirect="~/500.html" />
is working on a reply...