Forum Discussion
azakaria_102538
Nimbostratus
Dec 28, 2013Smartphone detection
Hi: kindly i need an IRULE that when a smartphone need to access URL www.mysite.com\AAA to redirect it to another link www.mysite.com\BBB
thanks for help
nitass
Employee
Dec 28, 2013can you add some logging?
e.g.
when HTTP_REQUEST {
log local0. "client=[IP::client_addr]:[TCP::client_port] host=[HTTP::host] uri=[HTTP::uri]"
if { [string tolower [HTTP::uri]] equals "/ar/e-services" } {
if { [class match -- [string tolower [HTTP::header "User-Agent"]] contains Mobile_Datagroup ] } {
HTTP::respond 302 noserver Location "https://[HTTP::host]/ar/home" Connection Close
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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