URI rewrite based on chosen pool member
The issue is I have servers behind the F5 that only listen on a specific uri. For site.com/login (incoming from users), there are say 3 servers that listen for the following: (server1) site.com/one, (server2) site.com/two, and (server3) site.com/three. My understanding is I can use HTTP_REQUEST_SEND but I haven't been able to put together the pieces. I'm pretty green when it comes to irules unfortunately.
I'd like to take an incoming request for site.com and change it to any one of those after the load balancing has occurred. From searching around I found a pretty good example, but I can't seem to figure out how to change what they have in there (host header) to the uri only.
Here's the link to what I've been reading: https://devcentral.f5.com/questions/rewrite-url-based-on-selected-node-for-load-balancing
Essentially this is all I need, but instead of the entire url, just change the uri. Seems like I could use the if/then logic for this - if lb chose server1, rewrite uri to /one and so forth.
Many thanks in advance. I'll keep digging around and trying things in the meantime.