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...
Not sure if this will apply but I have used this when we know what the URI starts with and we want to redirect them to a different path on the same host, this uses a 301 redirect instead of the normal 302
when HTTP_REQUEST {
if { [string toupper [HTTP::uri]] starts_with "/PATH1/PATH2/" }{
HTTP::respond 301 Location "https://example.com/newpath1/"
}
}