Created
June 24, 2021 23:17
-
-
Save MahdiKarimipour/4e862f9b26cbb3d4b0f8c9655b90fb2b to your computer and use it in GitHub Desktop.
Url Rewrite Options
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void Configure(IApplicationBuilder app) | |
{ | |
var options = new RewriteOptions() | |
.AddRedirectToHttps(301, 5001); | |
app.UseRewriter(options); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment