Forum Discussion
Michael_Yates
Aug 19, 2011Nimbostratus
Hi DannyF,
I fixed the syntax.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/help" -
"/help/" {
HTTP::header replace Location "https://helpsite.com/help"
pool pool_helpsite
snat automap }
}
}
If you use the iRule Editor (http://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/1/aft/1172053/showtab/groupforums/Default.aspx) it will help you with the Syntax issues.
Hope this helps!