Forum Discussion

Vivek_Padale_16's avatar
Vivek_Padale_16
Icon for Nimbostratus rankNimbostratus
Aug 05, 2014

irule for HTTP_RESPONSE

Hello,

 

I want to redirect the http response from server to https for a URL ex:- "http://abc.com" I their any iRule for this. i am using the below irule but its not working

 

when HTTP_RESPONSE { if { [HTTP::host] equals "abc.com"} { HTTP::redirect "https://[HTTP::host][HTTP::uri]" } }

 

Please help me.....