URL and uri redirection

Hello,

I need to enabled redirection on a virtual server on service say xyz.com where if anyone types .xyz Domain Names | Join Generation XYZ, the url should change to EmblemHealth: Health Insurance Information & Resources | EmblemHealth.

I have tried several irule but doesnt seem to be working.

Please advise how to change both url and uri.

regards Sheetal

You can do it very easy with a LTM Policy.

Hey Sheetal

Use the following iRule:

when HTTP_REQUEST {
  if { (([HTTP::host] == "xyz.com") && ([HTTP::uri] == "/ABCD/" )) }{
    HTTP::redirect http://ghi.com/MNOP
  }
}

You can also use Local Traffic Policies for this as well which is quite simple:

K15085: Overview of the Local Traffic Policies feature (11.4.0 - 12.0.0)