Created
June 24, 2021 23:42
-
-
Save MahdiKarimipour/cc0b0a5f363daf0986818d55a1d3aaf9 to your computer and use it in GitHub Desktop.
Url Rewrite with Regex
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
var rewrite = new RewriteOptions() | |
.AddRewrite(@"^Home/Resource?Id=(\d+)", "Home/$1", true); | |
app.UseRewriter(rewrite); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment