Forum Discussion
amul_191720
Mar 11, 2015Nimbostratus
Hi Stephen,
Thanks for your reponse. But the real situation here..
I need to redirect the https traffic to http ..
The scenario is :
We had URL but this is decommissioned http URL ( with new functionality...
The request here is .. I have created Virtual server with server port 443, I have mapped the irule to redirect https traffic to http.
when HTTP_REQUEST { if {[HTTP::uri] equals {https://xyz.com}} {HTTP::uri {http://zyx.com} } }
Could you please help me with your solution to resolve this issue.
- Mar 11, 2015Hi Amul, I just added the modified second iRule above. You will bind it to the virtual server and in case of matching hostname it will redirect to http. If you want to use the same virtual server for the old and new hostname you need to use SAN certificates or add multiple client-ssl profiles (requires client support for Server Name Indication [SNI]). If a client enters a URL like this: http://xyz.com/abcpath?defquery=param, the HTTP commands return the following: [HTTP::host] > xyz.com [HTTP::path] > /abcpath [HTTP::query] > defquery=param [HTTP::uri] > /abcpath?defquery=param That´s why your version of iRules did not work as you expected. Thanks, Stephan