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...
nathe
Cirrocumulus
Sep 28, 2012KJ
I'm not 100% sure of your requirements but this is a simple irule to redirect all http requests to the vs to https and removes any non-default port. Taken from: https://devcentral.f5.com/wiki/iRules.HTTPToHTTPSRedirect_302.ashx
when HTTP_REQUEST {
HTTP::redirect https://[getfield [HTTP::host] ":" 1][HTTP::uri]
}
Hope this helps,
N
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
