Forum Discussion
Curtis_18555
Nimbostratus
Mar 17, 2008Multiple Host going to one vip
Hello, I am working with a client that has many URL that they want to go to one. I have tried the following and it did not work. Can some one please point me in the right direction on this?
...
The_Bhattman
Nimbostratus
Mar 17, 2008You might want to try using the switch statement (only because it's cleaner to look at, atleast in my mind 😄
when HTTP_REQUEST {
switch -glob [HTTP::host] {
"*google*" { HTTP::redirect https://www.google.com }
"*ask*" { HTTP::redirect https://www.google.com }
"*msn*" { HTTP::redirect https://www.google.com }
}
}more about switches you can go to the following link
http://devcentral.f5.com/Default.aspx?tabid=63&articleType=ArticleView&articleId=129
Thanks,
CB
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