KJ_50941
Sep 28, 2012Nimbostratus
iRule 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...
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