Forum Discussion
Dayton_Gray_103
Nimbostratus
May 16, 2008Send 404 and redirect?
I have this irule:
HTTP_RESPONSE {
if { [HTTP::status] == "404"} {
HTTP::redirect "http://www.mysite.com/error/nopagehere.html"
}
}
Is there any...
Colin_Walker_12
May 20, 2008Historic F5 Account
I'm not quite sure I follow what you're trying to do. I think what you're looking for is to inspect the user agent on the inbound request, then check that value on the response to help determine an action? If so this should be pretty straight-forward. The user-agent should be cached for the duration of the iRule's execution (the whole connection) or you could store it simply in a local variable like:
set agent [HTTP::header" User-Agent"]
Colin
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
