Forum Discussion

KJ_50941's avatar
KJ_50941
Icon for Nimbostratus rankNimbostratus
Sep 28, 2012

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

 

14 Replies