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.
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
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:
<httpErrors errorMode="Custom" existingResponse="Replace">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/Error.aspx" responseMode="ExecuteUrl" />
</httpErrors>
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
is working on a reply...