Kenny_Van_73892
Oct 24, 2006Nimbostratus
Help 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 irule, the web page failed to load up.
Let say I have a site calls https://www.secure.com/logon/default.aspx and here the irule for the site:
if (server_port == 80) {
if (tolower(http_uri contains "logon")) {
redirect to "https://%h/%u"
}
else {
discard
}
}
else {
discard
}
So, here my test: if I type https://www.secure.com/logon/default.aspx then the webpage loads properly, but if I type www.secure.com/logon/default.aspx or WWW.SECURE.COM/LOGON/DEFAULT.ASPX then the webpage just timeout with error message The page cannot be displayed. If I remove tolower(), then type www.secure.com/logon/default.aspx then the irule will redirect to https properly.
Is there anyway to have tolower() and redirect work together in the same irule? What did I do wrong in the irule above? Please help me out.
Thanks in advance.