Forum Discussion
adrian_171483
Cirrus
Jun 25, 2015irule syntax check
Got a check on an Irule.. the rule needs to forward http requests not containing the URI /dashboard onto the default pool someother-http-farm.
If the http request does contain /dashboard in ...
Stanislas_Piro2
Cumulonimbus
Jul 02, 2015the best way with multiple values is switch: ( - at the end of choices is like a "or" )
when HTTP_REQUEST {
switch -glob -- [string tolower [HTTP::path]] {
"/dashboard*" -
"/something*" -
"/somethingelse*" {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
return
}
default { pool someother-http-farm }
}
}
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