book
Article ID: CTX327922
calendar_today
Updated On:
Description
When accessing http://example.com/url1/xxxx , Netscaler can transform /url1/ to /url2/ and preserve other parts, then forward to backend server.
Instructions
Sample Configuration:
- add transform profile Modiy_URL_Path_Act
- add transform action a_transfer_to_b Modiy_URL_Path_Act 100
- set transform action a_transfer_to_b -priority 100 -reqUrlFrom "http://example.com/url1/(.*)" -reqUrlInto "http://example.com/url2/$1" -resUrlFrom "http://example.com/url1/(.*)" -resUrlInto "http://example.com/url2/$1"
- add transform policy Modify_URL_Path_Pol "HTTP.REQ.URL.CONTAINS(\"/url1\")" Modiy_URL_Path_Act
Here in step 3, '(.*)' captures any sequence of characters (of any length including zero length) and '$1' refers to the contents captured by '(.*)'.
Additional Information
https://docs.netscaler.com/en-us/citrix-adc/current-release/appexpert/rewrite/url-transformation/configuring-url-policies.html