Forum Discussion
TNY_122436
Nimbostratus
Oct 28, 2013iRule Help
I'm trying to create a rule that will do redirections base on certain words are contain in the URI, but not sure where to start or what is going on as only one argument is working (test.123.tree) and...
Kevin_Stewart
Employee
Oct 28, 2013Try this:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/nice*" -
"/green*" -
"/tree*" { pool abc }
default { pool xyz }
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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