Forum Discussion
irule to change url with preserving query parameters and include extra names in the final url
- 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.
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.
- funduvalSep 07, 2022Nimbostratus
Hi Vivek,
So glad you got this working (now ages ago!) I was wondering, if you still check in here, could I implement this same solution with a longer path & switching the hostname, such as:
when HTTP_REQUEST {if {[string tolower [HTTP::uri]] starts_with "/beginningpath/nextlevel/nextlevel/MyAccountLogin.js?client_id="} { HTTP::redirect "https://a-totally-new-hostname/[HTTP::uri]" }}
I need to preserve & forward the incoming client id which is different every time.
Thanks,Funda
Recent Discussions
Related Content
* 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