You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Step 2 (a):** Create a rewrite set which has 3 rewrite rules:
197
197
@@ -201,13 +201,13 @@ To accomplish scenarios where you want to choose the backend pool based on the v
201
201
202
202
* The third rule has a condition that checks the *query_string* variable for *category=accessories* and has an action that rewrites the URL path to /*listing3* and has **Re-evaluate path map** enabled
Now, if the user requests *contoso.com/listing?category=any*, then it will be matched with the default path since none of the path patterns in the path map (/listing1, /listing2, /listing3) will match. Since you associated the above rewrite set with this path, this rewrite set will be evaluated. As the query string will not match the condition in any of the 3 rewrite rules in this rewrite set, no rewrite action will take place and therefore, the request will be routed unchanged to the backend associated with the default path (which is *GenericList*).
213
213
@@ -223,11 +223,11 @@ In that case, Application Gateway can capture parameters from the URL and add qu
223
223
224
224
**Condition** - If server variable `uri_path` equals to the pattern `/(.+)/(.+)`
For a step-by-step guide to achieve the scenario described above, see [Rewrite URL with Application Gateway using Azure portal](rewrite-url-portal.md)
233
233
@@ -237,7 +237,7 @@ In case of URL rewrite, Application Gateway rewrites the URL before the request
237
237
238
238
In case of URL redirect, Application Gateway sends a redirect response to the client with the new URL. That, in turn, requires the client to resend its request to the new URL provided in the redirect. URL that user sees in the browser will update to the new URL
* In the **URL path value**, enter the new value of the path. In this example, we will use **/article.aspx**
91
89
92
90
* In the **URL query string value**, enter the new value of the URL query striong. In this example, we will use **id={var_uri_path_1}&title={var_uri_path_2}**
93
91
94
-
**Note**: {var_uri_path_1} and {var_uri_path_1} are used to fetch the substrings captured while evaluating the condition in this expression `.*article/(.*)/(.*)`
`{var_uri_path_1}` and `{var_uri_path_1}` are used to fetch the substrings captured while evaluating the condition in this expression `.*article/(.*)/(.*)`
0 commit comments