From c22c092d9ed21092096346abc896ba06eb17e0ab Mon Sep 17 00:00:00 2001 From: Adel Helal Date: Tue, 30 Jan 2018 02:08:48 +1100 Subject: [PATCH] Fix minor readme typos for AddRedirect function sample. (#5301) * Update README.md * Update README.md --- aspnetcore/fundamentals/url-rewriting/samples/1.x/README.md | 2 +- aspnetcore/fundamentals/url-rewriting/samples/2.x/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/fundamentals/url-rewriting/samples/1.x/README.md b/aspnetcore/fundamentals/url-rewriting/samples/1.x/README.md index 2360c8c31d..8928bf1a5f 100644 --- a/aspnetcore/fundamentals/url-rewriting/samples/1.x/README.md +++ b/aspnetcore/fundamentals/url-rewriting/samples/1.x/README.md @@ -6,7 +6,7 @@ When running the sample, a response will be served that shows the rewritten or r ## Examples in this sample -* `AddRedirect("redirect-rule/(.*)", "$1")` +* `AddRedirect("redirect-rule/(.*)", "redirected/$1")` - Success status code: 302 (Found) - Example (redirect): **/redirect-rule/{capture_group}** to **/redirected/{capture_group}** * `AddRewrite(@"^rewrite-rule/(\d+)/(\d+)", "rewritten?var1=$1&var2=$2", skipRemainingRules: true)` diff --git a/aspnetcore/fundamentals/url-rewriting/samples/2.x/README.md b/aspnetcore/fundamentals/url-rewriting/samples/2.x/README.md index a5a329ab7b..70f60b8d04 100644 --- a/aspnetcore/fundamentals/url-rewriting/samples/2.x/README.md +++ b/aspnetcore/fundamentals/url-rewriting/samples/2.x/README.md @@ -6,7 +6,7 @@ When running the sample, a response will be served that shows the rewritten or r ## Examples in this sample -* `AddRedirect("redirect-rule/(.*)", "$1")` +* `AddRedirect("redirect-rule/(.*)", "redirected/$1")` - Success status code: 302 (Found) - Example (redirect): **/redirect-rule/{capture_group}** to **/redirected/{capture_group}** * `AddRewrite(@"^rewrite-rule/(\d+)/(\d+)", "rewritten?var1=$1&var2=$2", skipRemainingRules: true)`