Forum Discussion
iRule URI Parameter Replacement
You may try with below:
when HTTP_REQUEST { if { ([string tolower [HTTP::uri]] equals "/ui/webconsole.html?vmId=ImAVM&vmName=DefinitelyALegitVM&host=vcenter222.dev.ops&locale=en-U") } { HTTP::redirect "https://[HTTP::host]/ui/webconsole.html?vmId=ImAVM&vmName=DefinitelyALegitVM&host=vcenter-server333.dev.ops&locale=en-U" return } }
- calvinm_388644Apr 17, 2019
Nimbostratus
I apologize, I think I missed one of the problems I ran into with this. There is also a parameter in the URI that is randomly generated (i.e. &userID=sdfoajc391!90sjvdm3wdfs) so matching on a static URI wouldn't be possible.
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