Forum Discussion

Hien_Truong's avatar
Feb 24, 2021
Solved

Cap and not Cap uri

Hi,

i have the below irule

When HTTP_REQUEST {

if { [HTTP::host] equals " www.abc.com"

switch -glob [HTTP::path]

{ "/App/Events/Calendar.aspx"

{HTTP::respond 301 Location "https://www.def/redirect/Calendar.aspx" }

}

{ "/App/events/Calendar.aspx"

{HTTP::respond 301 Location "https://www.def/redirect/Calendar.aspx" }

}

{ "/app/Events/Calendar.aspx"

{HTTP::respond 301 Location "https://www.def/redirect/Calendar.aspx" }

}

 

My question is how to make this irule simple, can i use string tolower for this case? and how do i apply it to this irule.

Thanks in advance.

 

  •  

     

    Glad could be of help, would you mind marking the solution as answer provided, so it can help others too.

5 Replies

  • ​i just completed all my test cases after applying this new irule. it works, thanks a lot for your support.

    • jaikumar_f5's avatar
      jaikumar_f5
      Icon for MVP rankMVP

       

       

      Glad could be of help, would you mind marking the solution as answer provided, so it can help others too.