Forum Discussion
Kevhed
Nimbostratus
Oct 14, 2014HTTPS redirect to a different external website
I'm relatively new to F5 so not sure if this can be done. What we would like to do on our F5 is accept requests for https://webmail.our-companya.com and have the F5 send back a redirect to the clien...
Lazar_92526
Nimbostratus
Oct 15, 2014Here is an irule that should work. Just set a standard virtual server with an HTTP profile associated to it which is needed for the response to function:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] equals "server.fromsomewhere.com" } {
HTTP::respond 301 Location "https://goto.thisserver.com/thispage"
}
}
Ashish_Ram_Tak1
Nimbostratus
Oct 17, 2014Thank you for the support but my requirement is user will only see the server.fromsomewhere.com in their browser and not https://goto.thisserver.com/thispage. Could you please help on this.
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