Copied to clipboard

Flag this post as spam?

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


  • Braydie 148 posts 346 karma points
    Jul 09, 2013 @ 14:08
    Braydie
    0

    Using IIS Error pages instead of Umbraco

    I have a custom not found handler that currently routes umbraco 404s through this and serves up a node as the 404 page. I have found that this handler will only handle extension-less and .aspx requests - everything else causes it an IIS error to appear.

    I would like to stop Umbraco from handling my 404s - How can I do this? I'm running 4.7.2 and am on IIS7.

    Thanks

  • Braydie 148 posts 346 karma points
    Jul 09, 2013 @ 15:31
    Braydie
    100

    I have found that in order for me to specify my own 404 page within IIS rather than Umbraco I have needed to do the following:

    • Added my Error page to the reserved urls in the web.config
    • Commented out the umbraco not found handler from the 404handlers.config
    • Added httpErrors to the system.webServer section in the web.config:

    <httpErrors errorMode="Custom" existingResponse="Replace">
    <remove statusCode="404" subStatusCode="-1" />
    <error statusCode="404" prefixLanguageFilePath="" path="/Error.aspx" responseMode="ExecuteUrl" />
    </httpErrors>

     

     

  • Braydie 148 posts 346 karma points
    Jul 09, 2013 @ 15:42
    Braydie
    0

    I've still got an oustanding issue now that whenever I browse to a url without an extension or an unknown .aspx page, I see a 500 error

Please Sign in or register to post replies

Write your reply to:

Draft