when HTTP_REQUEST { if { [string tolower [HTTP::host]] equals "site2.lab.com" } { HTTP::respond 302 noserver -reset Connection close Location http://site3.lab.com } }
With the above iRule, the initial connection to site2.lab.com is closed when the redirect message is sent to the client. Check out the below output from curl which validates the same.