irule: http to https for a specific host
I have the following issue and need a way to redirect a specific host.
Issue: User types https://www.xyz.com/abc in the browser, request hits F5 which decrypts and forward it the server pool. When servers receive the request its in the form of http://www.xyz.com/abc and they respond with a redirect to http://www.xyz.com/def. Since only https is open on www.xyz.com the connection is terminated.
What i need is a i rule that converts that outbound http://www.xyz.com/def to https://www.xyz.com/def. Also it should not covert any other domains besides www.xyz.com. This is one of the reasons why redirect rewrite option did not work for us.