Forum Discussion
Kenny_Van_73892
Nimbostratus
Oct 24, 2006Help me with redirect and match cases, please
I just recently upgraded my Big IP units from version 4.5.10 to 4.6.4 to implement new features such as tolower() in irules. The upgrade went well, but when I tried to use tolower() and redirect in a...
Nov 08, 2006
You need to fix the tolower call. It should only have the http_uri as a parameter, instead you have the entire contains condition. This is returning a boolean and the tolower returns a non-zero value which is always interpreted as true so the initial if will always succeed.
Give this a shot:
if (tolower(http_uri) contains "logon") {
redirect to "https://" + http_url + tolower(http_uri)
}
else {
use pool my_pool
}
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