Forum Discussion
VFB
Cirrus
Mar 14, 2014redirecting L7 traffic
I'm trying to figure out how to redirect a set of L7 traffic host headers. Here's what I'd like to do:
redirect http://test.me.com to https://test.me.com, but all other traffic (example, johnny....
Cory_50405
Noctilucent
Mar 14, 2014Try this:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "test.me.com" } {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
}
VFB
Cirrus
Mar 14, 2014Thanks much! How would I modify the iRule to add more urls to reredirected to https and let's say pool1 instead of pool2?
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