another URL redirect question

Hi,

Need a irule to redirect

from http://a.b.net

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

Thanks!

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

thanks for the prompting help!