Copied to clipboard

Flag this post as spam?

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


  • Dibs 202 posts 991 karma points
    Jun 07, 2016 @ 14:12
    Dibs
    0

    Error handling within Umbraco and web.config

    Dear Umbraco Team

    I have set up a 404 node in backoffice and edited Config/umbracosettings.config to make use of the node when a page is not found. All works well.

    I have a Javascript file which creates URL links to certain nodes within the site. If the url created by the Javascript is not found the IIS default 404 page is rendered instead of 404 node from back office.

    how can make use of the 404 node to catch 404 not found exceptions from javascript created URL links ?

    Thanks Dibs

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jun 07, 2016 @ 14:34
    Dennis Aaen
    0

    Hi Dibs,

    If you are using IIS 7.5+ You may find that you don't get your error pages and IIS takes over as you see.

    To get Umbraco to handle your errors for 404 insert the following element before the end of the system.webServer section of the web.config.

    <httpErrors existingResponse="PassThrough"/>
    

    Now the errors you configured in the umbracosettings.config should display.

    Hope this helps,

    /Dennis

  • Dibs 202 posts 991 karma points
    Jun 14, 2016 @ 09:33
    Dibs
    0

    Cheers Dennis

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies