Forum Discussion
falooda_281506
Nimbostratus
Sep 09, 2016iRule help
Hi all, I needed some assistance with creating an irule. I want to create an iRule where the following applies:
default traffic goes to the pool OTHER
test.com/ and test.com/SUNFLOWER goes to pool FLOWER
all test.com requests have the /SUNFLOWER URI appended
and all URI's are kept
1 Reply
- Stanislas_Piro2
Cumulonimbus
try this irule:
when HTTP_REQUEST { if {[string tolower [HTTP::host]] equals "test.com} { switch [HTTP::path] { "/" - "/SUNFLOWER*" {pool FLOWER} default { HTTP::redirect /SUNFLOWER[HTTP::uri]} } } else { pool OTHER} }
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