Created
June 24, 2021 23:44
-
-
Save MahdiKarimipour/891a45c8c00ecda0da1df35909750f4a to your computer and use it in GitHub Desktop.
Url Rewrite Add Custom Rule to Collection
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, IHostingEnvironment env) | |
{ | |
var options = new RewriteOptions(); | |
options.Rules.Add(new CustomRewriteRule()) | |
app.UseRewriter(options); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment