Forum Discussion
shinchan-f5
Cirrus
Apr 13, 2020Irule optimization
Trying to redirect connection if response status code is 404 and the requested http uri contains list of uri's provided in the datagroup. It worked well as far as the requirement was concerned. But ...
Samir
MVP
Apr 14, 2020Prepared the iRule based on the hints provided in question. You can validate and let us know the result.
when HTTP_REQUEST {
set url_http [HTTP::uri]
}
when HTTP_RESPONSE {
if { ([HTTP::status] == 404) && ( $url_http contains "url") } {
HTTP::respond 302 Location "http://191.168.10.20/xyz/"
}
}
Hope it will work.
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