Forum Discussion
sidiov
Nimbostratus
Mar 17, 2009Redirecting specific java strings in uri
I have a redirection query that currently redirects the root page based on the browser type.
when HTTP_REQUEST {
if { [HTTP::path] equals "/" }{
if { [HTTP::header "User-Agent"] con...
hoolio
Cirrostratus
Mar 18, 2009I think the problem is with the logical not. If you wrap what you want to negate in parentheses does it work?
when HTTP_REQUEST {
if { [HTTP::path] equals "/" }{
if { not ([string tolower [HTTP::query]] starts_with "user=soviet") }{
if { [HTTP::header "User-Agent"] contains "soviet" }{
HTTP::redirect "http://soviet.com/"
}
}
}
}
Aaron
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
