Forum Discussion
gGnome_32510
Nimbostratus
Jan 13, 2010Redirection
We are new to F5, tcl, iRules... the works, so I apologize if this is an easy one. I have several SSL sites (F5 is the endpoint) that are secured with *.domain.com cerfificates, and an iRule that red...
hoolio
Cirrostratus
Jan 13, 2010How about this?
when HTTP_REQUEST {
Check the requested host header
switch -glob [string tolower [HTTP::host]] {
"*.example.com" {
Redirect *.example.com to the same host and URI via HTTPS
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
default {
Redirect all else to www.example.com host and original URI via HTTPS
HTTP::redirect "https://www.example.com[HTTP::uri]"
}
}
}
Aaron
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
