Skip to content

serveryang/Microsoft.AspNet.Diagnostics.StatusCodePagesOverrides

Repository files navigation

Microsoft.AspNet.Diagnostics.StatusCodePagesOverrides

Override StatusCodePages, Add app.UseStatusCodePagesWithRedirects("~/404.html", 404) method which redirect to specified page by pass status code. support asp.net 5 rc1-final.

How to use

  • Install package from nuget.
    Install-Package Microsoft.AspNet.Diagnostics.StatusCodePagesOverrides -Pre
    
  • Modify Startup.cs file.
    • using Microsoft.AspNet.Diagnostics.StatusCodePagesOverrides
    • Add app.UseStatusCodePagesWithRedirects("~/404.html", 404); in Configure method.

About

Overrides Microsoft.AspNet.Diagnostics.StatusCodePages

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages