Forum Discussion
brownie6969_121
Nimbostratus
May 31, 2012redirect irule
our old application url that pointed to the F5 vip was mybicrt.company.com. The new code is mybicrt.company.com/analytics. i created the following that achieves that part of it when HTTP_REQUE...
Michael_Yates
Nimbostratus
Jun 01, 2012Sorry,
I have to correct myself. I didn't read the original request.
From: https://mybicrt.company.com/saw.dll?Dashboard&PortlPath/shared/Executive/_portal/Executive
To: https://mybicrt.company.com/analytics/saw.dll?Dashboard&PortlPath/shared/Executive/_portal/Executive
This should fix your issue (change HTTP::path to HTTP::uri since the path does not include the HTTP::query, where the HTTP::uri does, so this should inject the directory that you need and append the rest).
So HTTP::path to detect the saw.dl (you could also use URI::basename to be even more specific)l value and HTTP::uri to complete the full URL to send to the server.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::path]] {
"/" -
"*/saw.dll" {
HTTP::uri "/analytics[HTTP::uri]"
}
}
}
Let us know if this works.
Hope this helps.
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