Forum Discussion
R_Eastman_13667
Oct 31, 2014Historic F5 Account
Try this:
when HTTP_REQUEST {
set clientURL "[HTTP::host][HTTP::uri]"
if {[class match [IP::client_addr] eq "private_net"]} {
if {$clientURL eq "qa-myaccess.com/Login/GentivaLinkTest" } {
HTTP::redirect "http://qa-myaccess.com/Login/GentivaLinkTest/Windows"
}
elseif {$clientURL eq "qa-myaccess.gentiva.ghsnet.com/Login/Relias" } {
HTTP::redirect "http://qa-myaccess.com/Login/Relias/Windows"
}
else {
HTTP::redirect "http://my-access.com/something"
}
}
else {
if {$clientURL eq "qa-myaccess.com/Login/GentivaLinkTest" } {
HTTP::redirect "http://qa-myaccess.com/Login/GentivaLinkTest/EmpowerID"
}
elseif {$clientURL eq "qa-myaccess.gentiva.ghsnet.com/Login/Relias" } {
HTTP::redirect "http://qa-myaccess.com/Login/Relias/EmpowerID"
}
else {
HTTP::redirect "http://my-access.com/something"
}
}
}