Forum Discussion
Chris_Lappi_164
Nimbostratus
Jan 12, 2015irule help
We have 1 irule doing the following:
when HTTP_REQUEST {
if {[string tolower [HTTP::uri]] starts_with "/aboutus/careers"} {pool A}
if {[string tolower [HTTP::uri]] starts_with "/aboutus"} {pool ...
Chris_Lappi_164
Nimbostratus
Jan 22, 2015So the rule is working great. Now I need to add some more logic. In the section:
elseif {[class match [string tolower [HTTP::uri]] starts_with DGI_Pool_B]}{
pool B
For the URI if it contains /en/ I would like it removed and then sent to pool B.
Tried this and in the process od debugging why its not working
elseif {[class match [string tolower [HTTP::uri]] starts_with DGI_Pool_B]} {[string map -nocase {"/en/" ""} [HTTP::uri]] {pool B}}
Thoughts??
- Brad_ParkerJan 22, 2015
Cirrus
your string map works but you're not setting the uri. Try : [HTTP::uri] [string map -nocase {"/en/" ""} [HTTP::uri]]
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