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 ...
shinchan-f5
Cirrus
Apr 13, 2020when HTTP_REQUEST {
set http_uri [HTTP::uri]
}
when HTTP_RESPONSE {
if { [HTTP::status] == 404 && [class match $http_uri contains "url"] }{
HTTP::redirect "http://191.168.10.20/xyz/"
}}
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
