Forum Discussion
brownie6969_121
May 31, 2012Nimbostratus
redirect 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...
Gbps_31870
Jun 01, 2012Nimbostratus
The problem is with HTTP::path equals "/" as this statement only match the part which is working, you should cover the other scenario "/saw.dll" to get it works.
Try this
when HTTP_REQUEST {
switch [string tolower [HTTP::path]] {
"/" -
"/saw.dll" {HTTP::redirect "https://[HTTP::host]/analytics[HTTP::uri]"}
}
}
HTH
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