greenasp_41938
Sep 08, 2009Nimbostratus
remove port number and redirect to https
I am trying to remove a port number and redirect to https:
Current Url: http://affiliates.abc.com:1003/affiliateimages/picture.gif
I need it to redirect to https://affilaites.abc.com/affiliateimages/picture.gif (picture.gif is a changing variable)
I setup a vs for vs_affiliate_redirect_1003 assigned to port 1003;
However, I can't get the irule to work.(I am sure I am not setting it up right)
when HTTP_REQUEST { if { [HTTP::host] eq "affiliate.abc.com:1003"} {
HTTP::redirect "https://affiliate.abc.com"
}
}