Forum Discussion
Karl_106887
Nimbostratus
Jan 12, 2010tolower and URI redirect
Any assistance appreciated. I have a redirect that is currently working similar to below. We do not have any control of URL case and will need to integrate a “tolower” scenario into this and looking for ideas for a general match to the URI format.
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"/network/siteone*" {
pool Pool_One
}
"/network/sitetwo*" {
pool Pool_Two
}
"/network/sitethree*" {
pool Pool_Three
}
}
}
1 Reply
- The_Bhattman
Nimbostratus
Hi Karl,when HTTP_REQUEST { switch -glob [string tolower [HTTP::uri]] { "/network/siteone*" { pool Pool_One } "/network/sitetwo*" { pool Pool_Two } "/network/sitethree*" { pool Pool_Three } } }
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