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?
when HTTP_REQUEST {
if { ([HTTP::uri] eq "/")}{
HTTP::redirect ""
}
}
when HTTP_REQUEST_SEND {
clientside {
if { ( ($example_host eq "example.com") } {
HTTP::header replace Host "example.com:8050"
}
}
}
Thx