Forum Discussion
Identical websites accessed with different URL's
when HTTP_REQUEST { if {[HTTP::uri] equals "training"} { pool pool_training } elseif {[HTTP::uri] equals "testing"} { pool pool_testing } elseif {[HTTP::uri] equals ""} {pool pool_prod} else {discard} }
Are u saying you have something similar like above and it does not work. I may be formatting the above iRule incorrectly so please check the syntax and also if any user comes in with any other uri other that you mentioned the connection will be dropped. You can also use a switch statement to do the above.
Why are you rewriting the uri...I did not understand am I missing something. Please let me know.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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