Forum Discussion
muzammil_88686
Nimbostratus
Mar 03, 2013Non Smartphone iRule
Dear Dev Team,
Could you pls let me know the Irule for "Non-Smartphone" devices?
If the "Non-Smartphone" device initiates the traffic to "mobile.xyz.com" it should redirect the traff...
nitass
Employee
Mar 03, 2013are both www.xyz.com and mobile.xyz.com resolved to same ip (virtual server)?
if so, is this applicable?
when HTTP_REQUEST {
switch [string tolower [HTTP::path]] {
"/" {
if { [HTTP::host] equals "www.xyz.com" } {
if { [class match [string tolower [HTTP::header User-Agent]] contains Mobile_Datagroup] } {
www.xyz.com but mobile browser
do something
} else {
www.xyz.com and pc browser
do something
}
} else {
if { [class match [string tolower [HTTP::header User-Agent]] contains Mobile_Datagroup] } {
NOT www.xyz.com and mobile browser
do something
} else {
NOT www.xyz.com but pc browser
do something
}
}
}
}
}
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects