Forum Discussion
Daniel2010_1501
May 29, 2015Nimbostratus
Wrote a super simple iRule that seems to work for us (modified from the work above). Thank you for pointing us in the right direction. Hope this helps others too.
when HTTP_RESPONSE {
if { ([HTTP::status] starts_with "4") || ([HTTP::status] starts_with "5")} {
HTTP::redirect "http://maintenance.host.url/dir/dir/file"
}
}