Forum Discussion
f5now_28704
Apr 27, 2009Nimbostratus
HTTP::uri slim down the irule
hey guys, currently I have an irule with redirects for some states/cites...long...is there a way of making it smaller...some sort of find and replace.
when HTTP_REQUEST {
if { ...
hooleylist
Apr 28, 2009Cirrostratus
Maybe something like this?
when HTTP_REQUEST {
Check if request contains either "find" string
switch [string tolower [HTTP::path]]}{
"oregon" -
"illinois" {
HTTP::redirect "http://[HTTP::host][string map {oregon phoenix illinois los-angeles} [HTTP::uri]]"
}
}
}
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