Forum Discussion
Samir
Jun 10, 2020MVP
You can try below irule. which will help to achieve your requirements.
when HTTP_REQUEST {
if { ([string tolower[HTTP::host]] equals "abc.com") and ([HTTP::uri] starts_with "/xyz") } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
elseif {[string tolower[HTTP::host]] equals "abc.com")} {
HTTP::redirect "https://bbc.com"
}
}
Let us know if any issue.