Forum Discussion

Ken_Hsieh_10699's avatar
Ken_Hsieh_10699
Icon for Nimbostratus rankNimbostratus
Sep 17, 2009

another URL redirect question

Hi,

 

 

Need a irule to redirect

 

 

from http://a.b.net

 

 

to http://a.b.com/test

 

 

Thanks!

 

2 Replies

  • Here is one based on your request.

     
     when HTTP_REQUEST { 
        if { ([HTTP::host] eq "a.b.net") and ([HTTP::uri] eq "/") { 
           HTTP::redirect "http://a.b.com/test" 
          } 
     } 
     

    Click here to learn more about HTTP::redirect

    Hope this helps

    CB