need irule

Hi,

Can anyone help me in writing irule so that i can redirect as below

“http://training.time.com:6000” redirected to http://marketing.time.com:7777/ebs11i.html

Thank you in advance

Regards

Arulkumar

Hi Arulkumar,

Assuming that the website ONLY responds on port 6000 then you can write something as simpleas the following

when HTTP_REQUEST {
   if { ([HTTP::host] eq "training.time.com") and ([HTTP::uri] eq "/") } {
        HTTP::redirect "http://marketing.time.com:7777/ebs11i.html"
      }
}

I hope this helps

Bhattman

Also if your running version 10 you should look into http class (http://devcentral.f5.com/Default.aspx?tabid=37&cx=015798286719081439686:g38hs-tdy64&cof=FORID:11&q=http%20class1181)

Bhattman