Forum Discussion

jato_40959's avatar
jato_40959
Icon for Nimbostratus rankNimbostratus
Dec 23, 2009

Irule WAP

Hello all,

 

I know this is a simple question but I'm new to F5 and need to get this done relatively quickly.

 

How can I make this redirect?

 

from http://www.mydomain.com

 

with user agent *MIDP*" and "*CLDC*"

 

to http://wap.mydomain.com

 

 

Thanx and regards

 

1 Reply

  • Hi Jato,

     

     

    Here is a code you could try

     

     

      
      when HTTP_REQUEST {  
          if { [HTTP::host] eq "www.mydomain.com" } {    
            switch -glob [string tolower [HTTP::header User-Agent]] {    
                "*mipd*" -    
                "*cldc*"  {   
                                 HTTP::redirect "http://wap.mydomain.com"    
                                }  
            }  
          }  
      }  
      

     

     

    I hope this help

     

     

    Bhattman