Forum Discussion
Ranvir_Floura_7
Nimbostratus
Sep 07, 2006iRule to implement uri based redirection (v9.x)
iRule experts,
I am trying to implement an iRule that would basically do redirections based on the uri.
Pool1:
xxx.xxx.xxx.111:8000
xxx.xxx.xxx.222:8000
Pool2:
xxx.xxx.xxx.111:9000
xxx.xxx.xxx.222:9000
https://abc.com/business --> this should redirect to Pool1
https://abc.com/ --> this should redirect to Pool2
Thanks!
when HTTP_REQUEST { if { [HTTP::uri] starts_with "/business" } { pool pool_1 } else { pool pool_2 } }
when HTTP_REQUEST { if { [HTTP::uri] starts_with "/business" } { pool pool_1 } }
- No problem and glad to help.
- Yoda_34023
Nimbostratus
Hi, - Deb_Allen_18Historic F5 AccountDoesn't work for HTTPS.
- I'd suggest moving this request over to the iRules forum for better visibility.
- Deb_Allen_18Historic F5 AccountTo clarify, since your question had 2 parts:
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