Forum Discussion
lawrence_Wickli
Nimbostratus
Jun 27, 2006Matchng a specific directory.
Hello all,
I am trying to match a specific directory and redirect apropriately without using regex rules. Here is what I have so far:
if { [string tolower [HTTP::uri]] starts_wit...
lawrence_Wickli
Nimbostratus
Jun 27, 2006So what I have ended up with is
when HTTP_REQUEST {
switch [getfield [string tolower [HTTP::uri]] "/" 2] {
about_us { pool p_http_about_us }
common { pool p_http_common}
content { pool p_http_content}
default { pool p_http_default}
}
}
is this rule as fast as I can get it or is there another approach?
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
