http to https using iRule not working

Hi,

Im trying to redirect http connection to https using policy but it now working. I’m getting “This site can’t be reached” on my browser. Below is my policy setting and virtual server. Any help much appreciated.

Policy: I try this:

tcl:https://[getfield [HTTP::host] \“:\” 1][HTTP::uri]

And this as well. Both not working

tcl:https://[getfield [HTTP::host] “:” 1][HTTP::uri]

I have applied http2https policy but didn’t see any issue. Any other irule/policy has applied to this VIP? if yes, please check the condition.

If this is the 1st policy you are applying then create fresh policy and follow guidelines. Link below.

In vip

Protocol(client) profile: tcp-wan-optimize & protocol(server) profile: tcp-lan-optimize.

Let us know if still any issue.

I follow all the steps for version 12.0 later and still not working. Do i need to have two virtual server with same IP but different port?