Forum Discussion
Silicon_84874
Nimbostratus
Jul 12, 2010Redirection to the same pool
Hi,
I'm new to iRules and do not have any formal training and I'm looking for some assistance please.
This is what I'm trying to achieve;
I have 1 pool consisting of two ...
Silicon_84874
Nimbostratus
Jul 14, 2010
when HTTP_REQUEST {
Check the requested host header set to lower case with wildcard matching
switch -glob [string tolower [HTTP::host]] {
"a.example.com" {
Redirect the client to a hardcoded URL with the first field of the requested host header
appended to the URI
HTTP::redirect "http://www.example.com/[getfield [HTTP::host] " " 1]"
"b.example.com" {
HTTP::redirect "http://www.example.com/[getfield [HTTP::host] " " 1]"
"c.example.com" {
HTTP::redirect "http://www.example.com/[getfield [HTTP::host] " " 1]"
}
}
}
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