Redirect Based on "http_host"

Hi all,

Can someone please assist with the following iRule conversion. It should be a simple one, but we are having difficulty finding the proper syntax for a host-based redirect.

Thanks!

Bryan

Existing iRule

==============

if (http_method == “TRACE”) {

discard

}

else if (http_host == “outlook.vwoa.na.vwg”) {

redirect to “http://vwoaahsxh001.vwoa.na.vwg/exchange/”

}

else {

discard

}