Forum Discussion

Bryan_Chick_152's avatar
Bryan_Chick_152
Icon for Nimbostratus rankNimbostratus
Jan 04, 2007

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

 

}

 

No RepliesBe the first to reply