Forum Discussion
javier_diaz_379
Nimbostratus
Mar 08, 2011Problem with iRule
when HTTP_REQUEST {
if {[string match {*[A-Z]*} [HTTP::path]]}{
if{[HTTP::query] equals ""}{
HTTP::redirect "http://[HTTP::host][string tolower [HTTP::path]]"
}
else{
HTTP::redirect "http://[HTTP::host][string tolower [HTTP::path]]?[HTTP::query]"
}
}
}
When I tried to define this rule, I have this eror:
01070151:3: Rule [dentalfind_URLtolower_RULE] error:
line 3: [parse error: extra characters after close-quote] [}{
HTTP::redirect "http://[HTTP::host][string tolower [HTTP::path]]"
}
else{
HTTP::redirect "http://[HTTP::host][string tolower [HTTP::path]]?[HTTP::query]"
}
]
line 5: [unmatched closing character] [}]
line 8: [unmatched closing character] [}]
- hoolio
Cirrostratus
Hi Javier,when HTTP_REQUEST { if {[string match {*[A-Z]*} [HTTP::path]]}{ if {[HTTP::query] equals ""}{ HTTP::redirect "http://[HTTP::host][string tolower [HTTP::path]]" } else { HTTP::redirect "http://[HTTP::host][string tolower [HTTP::path]]?[HTTP::query]" } } }
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