Forum Discussion

Karl_106887's avatar
Karl_106887
Icon for Nimbostratus rankNimbostratus
Jan 12, 2010

tolower 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

  • Hi Karl,

    Here you go

     
      
     when HTTP_REQUEST { 
     switch -glob [string tolower [HTTP::uri]] { 
     "/network/siteone*" { 
     pool Pool_One 
     } 
     "/network/sitetwo*" { 
     pool Pool_Two 
     } 
     "/network/sitethree*" { 
     pool Pool_Three 
     } 
     } 
     }  
     

    Bhattman