For more information regarding the security incident at F5, the actions we are taking to address it, and our ongoing efforts to protect our customers, click here.

Forum Discussion

Lazaro_Pereira_'s avatar
Lazaro_Pereira_
Icon for Nimbostratus rankNimbostratus
Aug 11, 2014
Solved

iRule to change a take a URL and add URI then send to a Pool.

Hi Everyone, I have a simple pool selection iRule in place for some internal sites but have been asked to have a URI added at the end to make it easier for people to access. I currently have: w...
  • Cory_50405's avatar
    Aug 11, 2014

    Try this one:

        when HTTP_REQUEST {
          switch [string tolower [HTTP::host]] {
            "sharepoint.test-site.com" {
              if { [HTTP::uri] equals "/" } {
               HTTP::redirect "https://[HTTP::host]/Pages/default.aspx"
              }
              else {
               pool /Internal/F5-Internal-Pool_sharepoint
              }
            }
            default {
              discard
            }
          }
        }