Forum Discussion
Jim_Gray_43725
Feb 08, 2012Nimbostratus
http redirect based on path and query strings
I have a data group with 166 lines of source and target URLs for redirect. Most source URLs include 1 to 3 different queries. I need to find a way to match an incoming path and each query in any orde...
Ashish_Ram_Tak1
Mar 06, 2013Nimbostratus
Dear Aaron,
Below is the iRule which i am using currently, should i have to do any changes in it.
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::header User-Agent]] {
"*iphone*" -
"*android*" -
"*ipad*" -
"*windows phone*" -
"*windows ce*" -
"*blackberry*" -
"*symbinos*" -
"*symbain os*" -
"*symbian*" -
"*java*" -
"*winowsphone*" -
"*windowsce*" {
HTTP::redirect "https://lite.example.co.in/[HTTP::uri]"
return
}
}
}
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