Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • rasb 162 posts 218 karma points
    Feb 14, 2010 @ 22:33
    rasb
    0

    Custom 500 Error Page

    Hi Guys,

    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?

    Thanks,
    RasB

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Feb 14, 2010 @ 22:39
    Lee Kelleher
    4

    Hi RasB,

    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:

    http://msdn.microsoft.com/en-us/library/h0hfz6fc.aspx

    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! ;-)

    Cheers, Lee.

  • rasb 162 posts 218 karma points
    Feb 14, 2010 @ 22:43
    rasb
    0

    Hi Lee,

    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

  • Kim Andersen 1447 posts 2196 karma points MVP
    Feb 14, 2010 @ 22:44
    Kim Andersen
    1

    Hi RasB

    I think that you can use the answer in this thread: http://our.umbraco.org/forum/developers/api-questions/4919-Custom-Error-Page

    /Kim A

  • rasb 162 posts 218 karma points
    Feb 14, 2010 @ 22:44
    rasb
    0

    Hi Lee,

    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 :-)

    /RasB

  • Kim Andersen 1447 posts 2196 karma points MVP
    Feb 14, 2010 @ 22:45
    Kim Andersen
    0

    I am sooo slow. Sorry for the same answer as Lee 1+ to him :)

    /Kim A

  • Lee Kelleher 4020 posts 15802 karma points MVP 13x admin c-trib
    Feb 14, 2010 @ 22:53
    Lee Kelleher
    0

    @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

    Cheers, Lee.

  • Anthony Dang 1404 posts 2558 karma points MVP 3x c-trib
    Jul 28, 2013 @ 20:12
    Anthony Dang
    2

    Heya

    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:

    <!DOCTYPE html>
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <meta http-equiv="REFRESH" content="0;URL=/Error/">
        </head>
    <body>
    </body>
    </html>
  • Stefano 61 posts 313 karma points c-trib
    Sep 27, 2017 @ 10:36
    Stefano
    0

    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

Please Sign in or register to post replies

Write your reply to:

Draft