Hien_Truong
Jun 30, 2021Cirrus
Redirect single URL (hostname) only.
i need to redirect single (none wildcard) from www.abc.com to def.ghk.lmn.com
This is a single URL. Please do not redirect any traffic for sub folders or other URLs in the domain.
My below irule is not working. please advise what is wrong with it. i appreciate your input.
when HTTP_REQUEST {
if {[HTTP::host] equals "www.abc.com"}{
if {not ([HTTP::uri] starts_with "/")}{
HTTP::redirect "https://def.ghk.lmn.com"
}
}
}
Thanks
your irule works perfectly. I appreciate your input and thanks for your support.