Forum Discussion
enable the log and make sure the condition is sucessfull or not
when HTTP_REQUEST {
if { not[class match [IP::client_addr] equals XYZ_group } {
log local0. "SUCCESS REDIRECTING THE USER [IP::client_addr] TO NEW DOMAIN "
HTTP::respond 301 Location "http://rextrum.com/xyz"
}
}
in console type tail -f /var/log/ltm to check the log in realtime.
also use developer tool in browser to check the response .
- SanthoshApr 08, 2020Nimbostratus
Hi Ragunath,
I can see that in the logs but it's still breaking and when I verified in the developer tools. I don't see any kind of 301 in that.
- ragunath154Apr 08, 2020Cirrostratus
can you post those logs here
also try
HTTP::redirect
when HTTP_REQUEST {
if { not[class match [IP::client_addr] equals XYZ_group } {
log local0. "SUCCESS REDIRECTING THE USER [IP::client_addr] TO NEW DOMAIN "
HTTP::redirect "http://rextrum.com/xyz"
}
}