Forum Discussion
Feb 26, 2015
BIG-IP : irule 301 redirect to new host
BIG-IP 11.4.1 Build 635.0 Hotfix HF2
Is this possible ?
switch -glob [string tolower [HTTP::host]] {
"www.mydomain.com" {
switch -glob [string tolower [HTTP::uri]] {
"/something*" ...
Brad_Parker
Cirrus
Feb 26, 2015Yes, a nested switch is more than valid. A couple things though. First don't use -glob unless you need a wildcard(*) as it will use more resources. Second, your location should probably contain http or https depending on weather you want to use SSL or not.
https://devcentral.f5.com/articles/irules-101-04-switch
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
