Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I have created a custom 404 Page Not Found error page. This is quite simple. But I can't seem to find any way to implement a custom 500 Error page.
Where do I do that?
The 500 (Server Error) page is beyond the control of Umbraco. If you get a 500 error, then the application has pretty much crashed (or it's a severe error), so you generally wouldn't be serving pages from the web-application (i.e. Umbraco).
To handle the 500 error, you can do this in your Web.config. MSDN has an example on it:
It's good practice to have your 500 page as a static HTML ... because it would be unhelpful to ever get an error on your "friendly" 500 error page! ;-)
Just as I had written the post, I started thinking about this, and thought that might be the way to do it.
Thanks for the solution,RasB
I think that you can use the answer in this thread: http://our.umbraco.org/forum/developers/api-questions/4919-Custom-Error-Page
I would have marked your post as the solution in stead of just giving it thumbs up.
If you want the Karma, just post another reply and I will give it to you :-)
I am sooo slow. Sorry for the same answer as Lee 1+ to him :)
@RasB, I think there's a weird bug on the forum, if you reload the page, you should be able to mark it as a solution. (Jeez, I'm getting a reputation as a "karma hunter" haha - scary!) ;-)
@Kim, Just shows how eager the Umbraco community are to help out! 1+ to you too! :-D
I know I'm 3 years late on this topic but...
You can set your web.config to use an error.html page which does a meta redirect to /error/ which allows you to content manage the error page
So you can have a content managed umbraco page for /error/ :)
See redirect below:
<meta http-equiv="REFRESH" content="0;URL=/Error/">
I'm 7 years late, but if you want you can generate a static page from a dynamic one with something like this: https://gist.github.com/StefanoChiodino/ad6f6860c235f4fd1d536fe53f887c2c
So you can have the safety of a static page with the headers, footers and content updated
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted