Forum Discussion

Denizor_21773's avatar
Denizor_21773
Icon for Nimbostratus rankNimbostratus
Jul 04, 2008

redirect URL to a node else

Hello!

 

 

I'm starting to use the bigip is little time, and am having difficulty in making a redirect by irules.

 

what I like to do is:

 

 

every URL that contain /servlet/ExampleXXXX redirect to a node else.

 

 

example of full URL:

 

http://www.mysite.com//servlet/ExampleXXXX?ssds=11

 

 

tried the example below most did not work:

 

 

/servlet/ExampleXXXX*" {

 

node 192.168.1.29 80

 

ONECONNECT::reuse disable

 

}

 

 

someone could help me?
  • For future reference if you are using the latest BIGIP then you will want to post in v9.x forum and not the v4.x forum.

    try this irule applied on the vip.

       
      when HTTP_REQUEST {    
        if { [HTTP::uri] contains "servlet/ExampleXXX" } {   
           node 192.168.1.29 80   
           }    
      }  
      

    thanks,

    CB
  • Sorry for putting the post in the wrong place, your rule worked perfectly.

     

    Thank you for help

     

    Denizor