Hien_Truong
Feb 24, 2021Cirrus
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.