Forum Discussion
Feb 08, 2017
If you really did mean redirect, and not rewrite, this might do the trick (not tested):
when LB_SELECTED {
if { [IP::addr [LB::server addr] equals 192.168.1.1] } {
HTTP::respond 302 Location "https://www.hostname1.com/extension"
} else {
HTTP::respond 302 Location "https://www.hostname2.com/extension"
}
}
Seems like a funny thing to do, but who am I to judge without knowing the background. 🙂
Change to 301 from 302 if you want to make the redirect permanent.
/Patrik