Forum Discussion
That will help. but here's the thing. On the virtual servers for each of those SIte's i also have a redirect to a specific login URI. Can you redirect to a pool and issue the appropriate redirect as part of the same iRUle ?
for eg when a user types in https://siteA.domain.com , pool SiteA needs to be selected and the user needs to be redirected to "https://siteA.domain.com/TC/welcome.msv" and when a user ttypes in https://siteB.domain.com, pool SiteB needs o be selected and user needs to be redirected to http://siteB.domain.com/Login/login.apsx
I started out along the path of redirecting to pools based on the URL , but did not know how to issue the redirects
For redirects, you can either use "HTTP::redirect" or "HTTP::respond".
 
https://clouddocs.f5.com/api/irules/HTTP__redirect.html https://clouddocs.f5.com/api/irules/HTTP__respond.html
 
For the trigger, something that checks for either the HTTP::path or HTTP::uri would work. Example"
 
switch -glob [string tolower [HTTP::uri]] {
"" -
"/" {
HTTP::redirect "https://[HTTP::host]/TC/welcome.msv"
}
}
From your initial description, it doesn't seem like you are sharing a single virtual server with multiple pools. It looked like a virtual server which redirects to other virtual servers. So, if that is the cause, the default pool (if one is set) for each of the virtual servers should serve the request to appropriate pools.