Forum Discussion
What_Lies_Bene1
Nov 22, 2012Cirrostratus
Create a Data Group with the relevant mobile User Agent strings call 'user-agent-dg' and then update your iRule as follows;
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" {
if { [class match [string tolower [HTTP::header User-Agent]] contains user-agent-dg ] } {
HTTP::redirect "http://www.test.com/abc/123/mypage/mobile-page" }
else {
HTTP::redirect "http://www.test.com/abc/123/mypage/?reset=true" }
}
}
}
}
}