Skip to content

Instantly share code, notes, and snippets.

@stevejay
Created May 5, 2014 01:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stevejay/260555ecd63f0846479f to your computer and use it in GitHub Desktop.
Save stevejay/260555ecd63f0846479f to your computer and use it in GitHub Desktop.
<system.webServer>
...
<httpErrors errorMode="Custom" existingResponse="Auto">
<remove statusCode="403" subStatusCode="14"/>
<error statusCode="403" subStatusCode="14"
responseMode="ExecuteURL" path="/path/to/Error/Forbidden"/>
<remove statusCode="404"/>
<error statusCode="404" responseMode="ExecuteURL"
path="/path/to/Error/NotFound"/>
</httpErrors>
</system.webServer>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment