Forum Discussion
Greg_Donohoe_25
Nimbostratus
Jul 07, 2016URL redirect
Hi,
I am trying to configure a URL redirect so that client sessions connectiong to https:abc.home.com are redirected to https://xyz.office.com. The one issue I see is that the xyz.office.com site wil...
Yann_Desmarest
Cirrus
Jul 07, 2016Hi,
You can use the following :
when HTTP_REQUEST {
if { [HTTP::host] eq "abc.home.com" } {
HTTP::respond 301 Location "https://xyz.office.com[HTTP::uri]"
}
}
Greg_Donohoe_25
Nimbostratus
Jul 07, 2016Hi Yann, thanks for the response. Your irule worked perfectly for what I wanted to do but now the application guys have come back with an additional request :-(
There is an authentication server in front of abc.home.com and what they want is any connection coming from that server to be allowed through. BUT if someone tries to go direct to abc.home.com then they need the redirect to xyz.office.com which you have already suggested. Any ideas? What is the best way to define the authentication server source? Any help appreciated.
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