Forum Discussion
Tom_Bell_15050
Nimbostratus
Jun 10, 2010Irule Redirect to one pool if 404 received from the first.
Howdy Guys,
My business has presented me with the following issue. They want traffic to a particular URL served from a static pool and if the file isn't present, we detect t...
Michael_Yates
Nimbostratus
Jun 10, 2010How about something like this:
when HTTP_REQUEST {
if { [HTTP::uri] starts_with "/static" } {
set uri [HTTP::uri]
pool stage-static
}
}
when HTTP_RESPONSE {
if { [HTTP::status] == 404 and $uri contains "/static" } {
HTTP::redirect "/"
}
}
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
