Hien_Truong
May 21, 2021Cirrus
irule with default redirect to home page.
i have irule with redirect some uri and the rest of them redirect to the Home page. i don't know why it is not go to home page. i appreciate your help.
Thanks
when HTTP_REQUEST {
if { [HTTP::host] equals "www.ABC.com" }
{
switch -glob [HTTP::path]
{
"/Content"
{ HTTP::respond 301 Location "https://www.CDF.com/legacy/Content"
}
"/Programs"
{ HTTP::respond 301 Location "https://www.CDF.com/legacy/Programs"
}
default
{HTTP::respond "https://www.CDF.com"}
}
}
}