Forum Discussion
Aviv
Cirrus
Jun 18, 2014Irule Wildcard with excules
Hi !
I need an irule that will redirect to another url all request that contains _vti_bi but will exclude 2 url's :
/_/_vti_bin -> to redirect
/_/_vti_bin/client.svc/ProcessQuery -> ...
kunjan
Nimbostratus
Jun 18, 2014Try this:
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "_vti_bi" } {
switch -glob [string tolower [HTTP::uri]] {
"/_/_vti_bin/client.svc/ProcessQuery" {
return
}
"/*/_vti_bin/sites.asmx" {
return
}
default {
HTTP::redirect "http://www.xyz.com"
}
}
}
}
kunjan
Nimbostratus
Jun 18, 2014Thanks. But I can't seem to modify it.
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