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::ho...
hoolio
Cirrostratus
Mar 08, 2011Hi Javier,
Can you try this version? There were some spaces missing.
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]"
}
}
}
Aaron
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
