Forum Discussion
Chad_Emerson_85
Nimbostratus
May 18, 2006Easy redirect?
How would you guys recommend doing the follwoing?
A user hits a url https://www.bcbsal.com/webapps/providerfinder/jsp/find.jsp
I need it to change to https://www.bcbsal.org/webapps/pro...
Deb_Allen_18
May 19, 2006Historic F5 Account
Well, if you want to send a redirect in response to an HTTPS connection, you still have to complete the handshake to send the redirect, so even if you are terminating SSL on the BIG-IP, that won't really relieve you of the problem of the expiring .com cert.
But to redirect any request for a bcbsal.com host to the same hostname.subdomain @ bcbsal.org, you could use a rule like this:
when HTTP_REQUEST {
if { [HTTP::host] contains "bcbsal.com"} {
HTTP::redirect https://[getfield [HTTP::host] ".bcbsal.com" 1].bcbsal.org[HTTP::uri]
}
}[
(You would NOT want to include the second condition if you are going to apply this rule to an HTTPS virtual, or any request with a host header NOT containing bcbsal.com will be caught in an endless redirect loop.)HTH
/deb
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