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

joeinbuffalo's avatar
joeinbuffalo
Icon for Nimbostratus rankNimbostratus
Nov 07, 2023
Solved

iRule for migrating to Sharepoint Online

Hello,  I'm very new to the F5 platform and creating iRules.  I did try searching the forums, and there is a lot of good information (thank you contributors), but can't find a solution to exactly wh...
  • Enes_Afsin_Al's avatar
    Nov 07, 2023

    Hi joeinbuffalo,

    when HTTP_REQUEST {
      if { [HTTP::host] eq "myportal.company.com" } {
        if { [HTTP::uri] eq "/" } {
          HTTP::redirect "https://sharepointonline.company.com"
          return
        }
        else {
          HTTP::redirect "https://sharepointonline.company.com/sites[HTTP::uri]"
          return
        }
      }
    }