If you are not a fan of multiple IF statements or data groups you could do nested switches:
when HTTP_REQUEST {
switch -glob [ string tolower [HTTP::host]] {
*example.com* {
switch -glob [ string tolower [HTTP::uri]] {
*thisisanoldsite* { HTTP::redirect "https://www.example.com/this/is/the/equivilant/site" }
*/hey/whatsup.aspx* { HTTP::redirect "https://www.example.com/abc/def/example.aspx" }
*/page206.aspx* { HTTP::redirect "https://www.example.com/subsite/URI/page.aspx" }
*/aboutthispage* { HTTP::redirect "https://www.example.com/About/Page.aspx" }
default { HTTP::respond 301 noserver Location "https://www.example.com" }
}
}
*nextdomain.com* {
switch -glob [ string tolower [HTTP::uri]] {
*thisisanoldsite* { HTTP::redirect "https://www.nextdomain.com/this/is/the/equivilant/site" }
*/hey/whatsup.aspx* { HTTP::redirect "https://www.nextdomain.com/abc/def/nextdomain.aspx" }
*/page206.aspx* { HTTP::redirect "https://www.nextdomain.com/subsite/URI/page.aspx" }
*/aboutthispage* { HTTP::redirect "https://www.nextdomain.com/About/Page.aspx" }
default { HTTP::respond 301 noserver Location "https://www.nextdomain.com" }
}
}
}
}