Forum Discussion
Geoff_34657
Apr 24, 2013Nimbostratus
HTTP:URI no ending slash
So I am using the following iRule and it works properly but, it doesn't work unless there is an ending / or it is a complete URL with filename. I have been searching through the examples and there i...
Kevin_Stewart
Apr 24, 2013Employee
If I understand your request, something like this should work (very similar to what you already have).
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/test" } {
pool A
} else {
pool B
}
}
Now, if you mean that you want to differentiate between "/test" (explicit) or "/test*" (something that starts with "/test"), then your conditional should flow from most specific to least specific. For example, if URI equals "/test", do A, else if URI starts with "/test", do B.
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