Fix minor readme typos for AddRedirect function sample. (#5301)
* Update README.md * Update README.mdpull/5275/head^2
parent
fa24342f38
commit
c22c092d9e
|
@ -6,7 +6,7 @@ When running the sample, a response will be served that shows the rewritten or r
|
||||||
|
|
||||||
## Examples in this sample
|
## Examples in this sample
|
||||||
|
|
||||||
* `AddRedirect("redirect-rule/(.*)", "$1")`
|
* `AddRedirect("redirect-rule/(.*)", "redirected/$1")`
|
||||||
- Success status code: 302 (Found)
|
- Success status code: 302 (Found)
|
||||||
- Example (redirect): **/redirect-rule/{capture_group}** to **/redirected/{capture_group}**
|
- Example (redirect): **/redirect-rule/{capture_group}** to **/redirected/{capture_group}**
|
||||||
* `AddRewrite(@"^rewrite-rule/(\d+)/(\d+)", "rewritten?var1=$1&var2=$2", skipRemainingRules: true)`
|
* `AddRewrite(@"^rewrite-rule/(\d+)/(\d+)", "rewritten?var1=$1&var2=$2", skipRemainingRules: true)`
|
||||||
|
|
|
@ -6,7 +6,7 @@ When running the sample, a response will be served that shows the rewritten or r
|
||||||
|
|
||||||
## Examples in this sample
|
## Examples in this sample
|
||||||
|
|
||||||
* `AddRedirect("redirect-rule/(.*)", "$1")`
|
* `AddRedirect("redirect-rule/(.*)", "redirected/$1")`
|
||||||
- Success status code: 302 (Found)
|
- Success status code: 302 (Found)
|
||||||
- Example (redirect): **/redirect-rule/{capture_group}** to **/redirected/{capture_group}**
|
- Example (redirect): **/redirect-rule/{capture_group}** to **/redirected/{capture_group}**
|
||||||
* `AddRewrite(@"^rewrite-rule/(\d+)/(\d+)", "rewritten?var1=$1&var2=$2", skipRemainingRules: true)`
|
* `AddRewrite(@"^rewrite-rule/(\d+)/(\d+)", "rewritten?var1=$1&var2=$2", skipRemainingRules: true)`
|
||||||
|
|
Loading…
Reference in New Issue