Forum Discussion
Malcom_Sargla_6
Nimbostratus
Oct 12, 2007Simple Http Redirect.. double 'IF' statement
Dear Central..
I am very new to Irules and really could use some assistance with one that I am working on.. again very new so I do apologize in advance if this is very basic.
1) Cl...
Malcom_Sargla_6
Nimbostratus
Jan 08, 2008Hello Deb, Dennypayne;
Thank you for all your assistance with this irule.. works great. Though I do have a couple of questions I was hoping to get some guidance on. If I use ' string tolower' this will lower all incoming url's to lower case, correct? If yes, then this must add some processing overhead to the system. Could I simply remove 'string tolower' and leave the rest of the iRULE intact? Thank you in advance.
when HTTP_REQUEST {
if {([matchclass [IP::client_addr] equals $::xxxx_test]) && \
([string tolower [HTTP::uri]] starts_with "/pfs")}{
HTTP::redirect "http://dev-otasl04.xxx.swlab.xxx.net[HTTP::uri]"
} else {
pool WTLPERF-updates_8100
}
}
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