Forum Discussion
muzammil_88686
Nov 22, 2012Nimbostratus
Thank you Steve!
How can I log if the Mobile device is detected? I tried using the log as below in If statement but it is not working.
if { [class match [string tolower [HTTP::header User-Agent]] contains user-agent-dg ] } {
HTTP::redirect "http://www.test.com/abc/123/mypage/mobile-page"
log local0. "[IP::client_addr]:[TCP::client_port]: UA: [HTTP::header "User-Agent"], redirecting"
}
else {
HTTP::redirect "http://www.test.com/abc/123/mypage/?reset=true" }
}