Forum Discussion
Christian_15126
Nimbostratus
Jan 24, 2013irule switch statement not matching header or paths
Marketing has hit me with another irule fun project. This is what they want me to accomplish:
They want 60/40 split load balancing between the following URL's:
-------------- 40% -...
What_Lies_Bene1
Cirrostratus
Jan 25, 2013This perhaps;
when HTTP_REQUEST {
switch -glob [string tolower $variable-name] {
"*abc*" -
"*def*" { HTTP::redirect https://www.xyz.com/xyz }
"*ghi*" { HTTP::redirect https://www.mno.com/mno }
default {
HTTP::redirect "https://[HTTP::host][HTTP::uri]" }
}
}
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