Forum Discussion

Dev_56330's avatar
Dev_56330
Icon for Cirrus rankCirrus
Jun 08, 2018

Redirect based on URI and select new pool?

I am looking for a solution to redirect users to a different URL based a specific URI then without creating a new VS for the new URL send to a specific pool. Below is a switch statement used to select a pool based on URI though I am unsure of how or if it is actually possible to redirect and send to a pool.

 

Currently there is an iRule which contains an if statement for many uri's since this one VS actually hosts multiple applications and redirects to pool based on URI though it does not redirect to a different URL based on URI.

 

4 Replies

  • JG's avatar
    JG
    Icon for Cumulonimbus rankCumulonimbus

    What did you mean by "a different URL"? A different hostname? And where is the switch statement? Can you be more specific about the problem you are trying to solve?

     

  • You should be able to redirect based on URI using switch statement. For better answer, provide the relevant URL and URI.

     

  • "...then without creating a new VS for the new URL send to a specific pool."

     

    I'm not sure how this part would work