cancel
Showing results for 
Search instead for 
Did you mean: 

Redirect iRule

Reynaldo_Fenol
Nimbostratus
Nimbostratus

I want to redirect traffic if connection to a virtual server returns a error code 404, 408 500. How do i phrase the iRule?

Thanks.

1 REPLY 1

PeteWhite
F5 Employee
F5 Employee
when HTTP_RESPONSE { if { [HTTP::status] == "404" || [HTTP::status] == "408" || [HTTP::status] == "500" } { HTTP::redirect "http://www.siterequest.com/" } }