Forum Discussion
Corey_Webb_9791
Nimbostratus
Dec 18, 2007Redirect HTTP to HTTPS without using HTTP_REQUEST trigger
I need to redirect traffic that comes to my VIP as http:\\x.y.z to https:\\x.y.z however since there is no actual HTTP_REQUEST triggered when the request comes in as http I need to trigger this redire...
Colin_Walker_12
Dec 18, 2007Historic F5 Account
Slight rule mod, too:
when HTTP_REQUEST {
if {[string tolower [HTTP::uri]] starts_with "/idhan" } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
} elseif { [string tolower [HTTP::uri]] starts_with "/hanhelp"} {
pool NETDEV
} else {
discard
}
}
No need to redirect AND try to send to a pool in the same if case.
Colin
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