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…

Vivek,

You can use a stream profile and/or and stream irule. See the following post:

can-f5-ltm-replace-http-with-https

And this Sol:

sol8115

Rgds

N

hello Guys.

I am enabling Stream profile on VIP port no.80

I tried the above solution but its working perfectly…

Is thier any other way to do it.