Forum Discussion
wrightnz_34708
Jul 08, 2010Nimbostratus
ProxyPass
Hi - hope this is the right place to pose this question
Background:
We are using the ProxyPass irule v10.2 to setup URI shortcode/keyword redirects (rewrites?) e.g. www.123.com/checkthisout...
hooleylist
Jul 22, 2010Cirrostratus
That looks exactly correct. If as in your original post, you want to check for multiple patterns that use the same action, you can group them using a -
when HTTP_REQUEST {
Set the path to lowercase
switch -glob [string tolower [HTTP::uri]] {
"*/tabid/737/*" -
"*/tabid/746/*" -
"*/tabid/786/*" {
HTTP::respond 301 Location "http://www.123.com/error404.aspx"
}
}
}
Aaron
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