Forum Discussion
David_Oertli_18
Nimbostratus
Mar 27, 2017HTTP referer header redirect
I am trying to come up with a "sorry server" logic for a virtual server. There is no pool behind the VIP and the only time client requests will hit the virtual server is in the case that there is no ...
Vijay_E
Cirrus
Mar 27, 2017(Untested). You can have simple if-else statement like this:
when HTTP_REQUEST {
if { ([HTTP::header exists "Referer"]) and ([URI::host [HTTP::header value Referer]] contains "specialsso.special.com") } {
HTTP::redirect https://www.site.com/special-client/
} else {
HTTP::redirect https://www.site.com/generic-client
}
}
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