Forum Discussion
Michael_Yates
Aug 08, 2011Nimbostratus
I tinkered with this again and got these working as expected.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"/foo*" { HTTP::redirect "http://www.yahoo.com" }
"/\\?\\?*" { HTTP::redirect "http://www.msn.com" }
"/\\?*" { HTTP::redirect "http://www.google.com" }
}
}
Hope this helps!