Forum Discussion
hooleylist
Mar 09, 2010Cirrostratus
That iRule looks like it should work fine assuming you have it enabled on the oldsite VIP. Can you add logging if it's not working as you expect?
when HTTP_REQUEST {
log local0. "[IP::client_addr]:[TCP::client_port]: [HTTP::method] request to [HTTP::path]"
if {not ([HTTP::path] starts_with "/testing")}{
log local0. "[IP::client_addr]:[TCP::client_port]: Matched URI check. Redirecting."
HTTP::redirect https://www.newsite.com
}
}
Aaron