Forum Discussion

Zabeel_101104's avatar
Icon for Nimbostratus rankNimbostratus
Mar 29, 2012

url control based on requests/path




Need some help on irules please.



We have irules defined on the F5 where the string is matched and request sent to a pool



"" { pool website1 }



What I am trying to achieve is



anyone going to gets sent to



but if anyone types in this gets passed along as is to the pool and everything else goes to







2 Replies

  • Hi Zabeel,

    I can't see how rewriting ever URI except /webconsole/app to /webdesktop would work, but here's what should do that:

    "" { 
       pool website1
       switch -glob [HTTP::uri] {
          "/webconsole/app*" {
              do nothing
          default {
              Rewrite URI to /webdesktop
             HTTP::uri "/webdesktop"