Forum Discussion
Ankur_5273
Nimbostratus
Aug 11, 2014Convert HTTP Redirect to case sensitive
Hi Experts,
Kindly help in converting the below highlighted part in case sensitive format
when HTTP_REQUEST {
if { [HTTP::host] ne "www.myweb.com" } {
return
}
switch -glob [HTTP::pat...
Cory_50405
Noctilucent
Aug 11, 2014I would just convert the HTTP::path check to lowercase and then match against that, like this:
switch -glob [string tolower [HTTP::path]] {
"/secureapp/connect/report_en/rep/*" {
**HTTP::redirect "**http://www.myweb.com[string map {/secureapp/connect/REPORT_en/REP/ /en/} [HTTP::uri]]"****
}
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