change http header

Dear DevCentral

I would like to do as, my application url is http://test.me.com, want to replace with https://me.test.com

I tried to use streaming profile but no success can any one advice me ! thank you Regards,

You should use LTM Policy preferably. Alternatively iRule as follow:

if { [HTTP::host] equals “test.me.com” } { HTTP::respond 301 Location ";[HTTP::uri] }

or,

when HTTP_REQUEST { if { [string tolower [HTTP::host]] eq “test.me.com” } { HTTP::respond 301 Location ";[HTTP::uri] } }