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...
Corey_Webb_9791
Nimbostratus
Dec 18, 2007Rule looks like this now.
when HTTP_REQUEST {
if {[TCP::server_port] == 80 } {
if {[string tolower [HTTP::uri]] equals "idhan/" } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
pool NETDEV
}
elseif {
[string tolower [HTTP::uri]] equals "hanhelp/"} {
pool NETDEV
}
else {
discard}
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