Forum Discussion
KJ_50941
Nimbostratus
Sep 28, 2012iRule hlep
I need to redirect from http to https , also since some users have bookmark specific port for exmaple port 8050 in their browser to be redirect to https. how do I do that.
does this works...
KJ_50941
Nimbostratus
Sep 28, 2012Thx, our requiremnets is to redirect HTTP to HTTPS and secondly if some user has bookmark port:8050 they also need to redirect to https.
does this will work?
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
or
when HTTP_REQUEST {
if {[TCP::local_port] != 443}{
HTTP::redirect " [HTTP::host] ":" 1][HTTP::uri]"
}
}
}
also what does getfield do?
thx in advanced.
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
