Skip to content

Commit

Permalink
Custom 404 error handler in web.config
Browse files Browse the repository at this point in the history
  • Loading branch information
rxtur committed Sep 10, 2016
1 parent 226f0a7 commit 869d2f9
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion BlogEngine/BlogEngine.NET/Web.Config
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,16 @@
</httpHandlers>
</system.web>
<system.webServer>
<validation validateIntegratedModeConfiguration="false" />
<validation validateIntegratedModeConfiguration="false" />
<!--
Uncomment below to configure custom 404 error; if blog in subfolder,
like "/blog", make sure path includes subfolder
-->
<!--<httpErrors existingResponse="Replace" errorMode="Custom">
<remove statusCode="404" subStatusCode="-1" />
<error statusCode="404" prefixLanguageFilePath="" path="/error404.aspx" responseMode="ExecuteURL" />
</httpErrors>-->

<!-- Enable the staticContent section below to add Expires headers to images for better performance.
Some hosting providers does not allow the staticContent section to be set. -->
<!--
Expand Down

0 comments on commit 869d2f9

Please sign in to comment.