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...
wrightnz_34708
Jul 22, 2010Nimbostratus
One more question if I may... can wildcards be used e.g. using siteurls.config to look for characters in URI and redirect
[RewriterRule]
[LookFor].*tabid/786/.*[/LookFor]
[SendTo]http://www.123.com/error404.aspx[/SendTo]
[/RewriterRule]
Could I change this to an iRule as follows - how would you use string match for glob style wildcard pattern matching: (string match "*/tabid/786/*" [HTTP::uri])
Would this work?
when HTTP_REQUEST {
Set the path to lowercase
switch -glob [string tolower [HTTP::uri]] {
"*/tabid/786/*" {
HTTP::respond 301 Location "http://www.123.com/error404.aspx"
}
}
}
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