Forum Discussion
irule for url redirect and pool specific
Hi I have below requirement:
test-yyt-uat.ac/btty/* this should redirect to test-yyt-uat.ac/* pool A
test-yyt-uat.ac/* this should remain same to test-yyt-uat.ac/* pool B
Because my backened only accept test-yyt-uat.ac/*
1 Reply
- Lee_Sutcliffe
Nacreous
Please ensure you search previous posts before posting, this is one of the most commonly asked questions and has been answered many times before.
There is also an example of something similar in the iRule wiki:
https://devcentral.f5.com/wiki/iRules.HTTP__uri.ashx
This is an example of how you could rewrite your URI and select a pool based on this condition
when HTTP_REQUEST { if {[HTTP::uri] starts_with "/btty" } { set newURI [string map {"/btty" ""} [HTTP::uri]] HTTP::uri $newURI pool poolA } else { pool poolB } }
Recent Discussions
Related Content
* 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