Forum Discussion
missionOne_6216
Nimbostratus
Aug 11, 2010Conversions from v4 [ignore the other 3 posts! :/ ]
So aparently DevCentral doesn't like Chrome. Things timed out when I last clicked post, then suddenly there were 3 copies, and no formatting. :/
Lets try again, IE seems to be required to pl...
hoolio
Cirrostratus
Aug 11, 2010Hi m1,
Ignore my other reply about formatting. Here are a few examples converted. If you get stuck on any of the others, reply here and we can help.
if (server_port == 80)
{ redirect to "https://%h/%u" }
else { discard }
when HTTP_REQUEST {
switch [TCP::local_port] {
80 {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
default {
discard
}
}
}
if (http_host == "host.com" and http_uri == "/")
{ redirect to "https://www.host.com" }
else { discard }
when HTTP_REQUEST {
if {"[string tolower [HTTP::host]][HTTP::uri]" eq "/"}{
HTTP::redirect "https://www.host.com"
} else {
discard
}
}
if (http_uri == "/")
{ redirect to "https://mail.host.com" }
else { discard }
when HTTP_REQUEST {
if {[HTTP::uri] eq "/"}{
HTTP::redirect "https://mail.host.com"
} else {
discard
}
}
Aaron
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
