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 18, 2006Historic F5 Account
You're probably getting a redirect to:
https://www.bcbsal.org//webapps/providerfinder/jsp/find.jsp
Try removing the "/" trailing the hostname, as it's already included in the URI:
when HTTP_REQUEST {
if { [HTTP::host] contains "bcbsal.com"} {
HTTP::redirect https://www.bcbsal.org[HTTP::uri]
} else {
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}
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