Forum Discussion
dpeterson_24304
Sep 15, 2011Nimbostratus
Syntax errors on match_glob?
I've got a remarkably boring rule that I'm getting a syntax error on, and I don't understand why. I've also tried string_match and am getting similar errors, but I'm just not seeing what I'm doing wr...
dpeterson_24304
Sep 15, 2011Nimbostratus
Same error there. We're on 9.3.1.
A switch statement works though:
On https calls, detect no www and redirect to www
when HTTP_REQUEST {
switch -glob [HTTP::host] {
"blah*.com" {
HTTP::redirect "https://www.[HTTP::host][HTTP::uri]"
}
}
}
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