-
AppExpert Applications and Templates
-
Configure application authentication, authorization, and auditing
-
-
Advanced Policy Expressions: Working with Dates, Times, and Numbers
-
Advanced Policy Expressions: Parsing HTTP, TCP, and UDP Data
-
Advanced Policy Expressions: IP and MAC Addresses, Throughput, VLAN IDs
-
-
-
-
Rewrite Action and Policy Examples
-
Example 12: Configure rewrite policy to replace a part of the URL directory
This content has been machine translated dynamically.
Dieser Inhalt ist eine maschinelle Übersetzung, die dynamisch erstellt wurde. (Haftungsausschluss)
Cet article a été traduit automatiquement de manière dynamique. (Clause de non responsabilité)
Este artículo lo ha traducido una máquina de forma dinámica. (Aviso legal)
此内容已动态机器翻译。 放弃
このコンテンツは動的に機械翻訳されています。免責事項
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This content has been machine translated dynamically.
This article has been machine translated.
Dieser Artikel wurde maschinell übersetzt. (Haftungsausschluss)
Ce article a été traduit automatiquement. (Clause de non responsabilité)
Este artículo ha sido traducido automáticamente. (Aviso legal)
この記事は機械翻訳されています.免責事項
이 기사는 기계 번역되었습니다.
Este artigo foi traduzido automaticamente.
这篇文章已经过机器翻译.放弃
Translation failed!
Example 12: Configure rewrite policy to replace a part of the URL directory
The following section describes the procedure to configure a rewrite policy on a NetScaler appliance to replace a part of the URL directory.
Consider a user who wants to replace the first directory of the URL. For example, the user types the URL www.example.com/aaa/bbb/ccc/ddd, and the first directory (aaa) is replaced by www.example.com/zzz/bbb/ccc/ddd.
You can follow the subsequent steps to replace a part of URL directory using NetScaler appliance.
Perform the following by using the GUI
-
Create an action of type REPLACE.
-
Create a Rewrite policy and specify the action created in step 1.
-
The following image is a sample GET request screen from where the policy is tested.
Perform the following by using the CLI
-
Create Rewrite action.
add rewrite action action-url replace "HTTP.REQ.URL.PATH.GET(1)" "\"zzz\""
-
Create Rewrite policy.
add rewrite policy policy-url true action-url
-
Bind the Rewrite policy to the load balancing virtual server.
bind lb vserver "<VSERVER_NAME>" -policyName <REWRITE_POLICY_NAME> -priority <PRIORITY> -type REWRITE
Note
If you want to replace the second directory in the URL, then you must create the action as HTTP.REQ.URL.PATH.GET(2). For further replacement of directory, you must follow the same step.
Share
Share
This Preview product documentation is Citrix Confidential.
You agree to hold this documentation confidential pursuant to the terms of your Citrix Beta/Tech Preview Agreement.
The development, release and timing of any features or functionality described in the Preview documentation remains at our sole discretion and are subject to change without notice or consultation.
The documentation is for informational purposes only and is not a commitment, promise or legal obligation to deliver any material, code or functionality and should not be relied upon in making Citrix product purchase decisions.
If you do not agree, select Do Not Agree to exit.