Forum Discussion
Reynaldo_Fenol
Nimbostratus
Apr 28, 2020Redirect iRule
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.
PeteWhite
Employee
Apr 28, 2020when HTTP_RESPONSE {
if { [HTTP::status] == "404" || [HTTP::status] == "408" || [HTTP::status] == "500" } {
HTTP::redirect "http://www.siterequest.com/"
}
}Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects
