muzammil_88686
Nov 22, 2012Nimbostratus
Detecting Mobile Devices and Redirecting to different URL
Dear Dev Team,
-> Curretly we have the below iRule.
==========================================================
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"www.test.com" -
"test.com" -
"10.1.1.1" {
Check and redirect request
switch [string tolower [HTTP::path]] {
"/" -
"/abc/123" {HTTP::redirect "http://www.test.com/abc/123/mypage/?reset=true"}
}
}
}
}
==========================================================
New requirement is, apart from the above, if any mobile device(need to be detected by iRule) who is trying to access the same "www.test.com" or "www.test.com/abc/123" URL need to be redirected to "http://www.test.com/abc/123/mypage/mobile-page"
Could you pls help me on this?
Thank you in advance!