Did some modification in irule. Either use
start_with or contains
place of
eq
in syntex. It will work. Please let us know if any issue
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] eq "main.you.com") and ([string tolower [HTTP::uri]] starts_with "/monkey/std/public/v1") } {
HTTP::redirect "https://main.you.com/monkey/std/public/v1"
}
elseif { ([string tolower [HTTP::host]] eq "main.you.com") and ([string tolower [HTTP::uri]] starts_with "/monkey/public/v2") } {
HTTP::redirect "https://main.you.com/monkey/public/v2"
}
elseif { ([string tolower [HTTP::host]] eq "main.you.com") and ([string tolower [HTTP::uri]] starts_with "/monkey/*") } {
HTTP::redirect "https://side.you.com" }
else { pool main.you.com_pool }
}