Forum Discussion
jato_40959
Nimbostratus
Dec 23, 2009Irule WAP
Hello all,
I know this is a simple question but I'm new to F5 and need to get this done relatively quickly.
How can I make this redirect?
from http://www.mydomain.com
wit...
The_Bhattman
Nimbostratus
Dec 23, 2009Hi Jato,
Here is a code you could try
when HTTP_REQUEST {
if { [HTTP::host] eq "www.mydomain.com" } {
switch -glob [string tolower [HTTP::header User-Agent]] {
"*mipd*" -
"*cldc*" {
HTTP::redirect "http://wap.mydomain.com"
}
}
}
}
I hope this help
Bhattman
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