Forum Discussion
Vivek_377556
Nov 22, 2018Altostratus
irule to change url with preserving query parameters and include extra names in the final url
Hello,
I am new to irule. Below are the details of my requirement :
I have this url :
http://xyz.com/test_check.do?test_id=XXX
I want to write an irule so that it will redirect/respo...
- Nov 23, 2018
I have tried below irule, added in the irule list and it worked correctly :
when HTTP_REQUEST { if {[string tolower [HTTP::uri]] starts_with "/test_check.do?test_id="} { HTTP::redirect "https://xyz.com/testing[HTTP::uri]" } }
Thanks you all for your responses.
Steph
Nov 22, 2018Nimbostratus
This one Should work
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] starts_with "/test_check" } { HTTP::redirect "https://xyz.com/testing/[HTTP::uri]?[HTTP::query]" } }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects