Forum Discussion
greenasp_41938
Nimbostratus
Sep 08, 2009remove 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/a...
The_Bhattman
Nimbostratus
Sep 08, 2009Hi,
Since you have a VS for port 1003 created I am assuming you have one set up for 443 so apply the following on vs_affiliate_redirect_1003
when HTTP_REQUEST {
if {[HTTP::host] eq "affiliate.abc.com" {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
Basically it will redirect to vs_affiliate_443 w/o the port information.
I hope this helps
CB
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects