Forum Discussion
VGF5
Cumulonimbus
Jul 12, 2017Irule message show
Hi DC,
Is that possible to show the msg whoever coming from different URLs.
For example if anybody is coming from
https://dell.abc.com/hr-form/registration
https://dell.abc.com/h...
Samir_Jha_52506
Noctilucent
Jul 12, 2017Yeah, we can make iRule to match phone browser's
User-Agent header & display message or redirect to webpage.
Example
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::header User-Agent]] {
"*iphone*" -
"*android*" -
"*windows phone*" -
"*windows ce*" -
"*bada*" -
"*bb10*" -
"*blackberry*" -
"*symbinos*" -
"*symbain os*" -
"*symbian*" -
"*java*" -
"*winowsphone*" -
"*windowsce*" {
HTTP::redirect "https://[HTTP::host]mobile.aspx"
}
default {
HTTP::redirect "https://[HTTP::host][HTTP::uri]" }
}
}
VGF5
Cumulonimbus
Jul 12, 2017Thank you f5_rock
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