Skip to content

Instantly share code, notes, and snippets.

@kristofclaes
Created April 6, 2011 09:33
Show Gist options
  • Save kristofclaes/905391 to your computer and use it in GitHub Desktop.
Save kristofclaes/905391 to your computer and use it in GitHub Desktop.
How I wired up the custom 404-message. IE and Chrome never showed my page because of browser settings. Took me a while to figure that one out :(
<system.webServer>
<httpErrors errorMode="Custom">
<remove statusCode="404" />
<error statusCode="404" path="error404.htm" />
</httpErrors>
</system.webServer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment