I haven't tested this iRule but given the conditions I'd go for
when HTTP_REQUEST {
redirects the client to the correct catalogue
if { ([string tolower [HTTP::host]] equals "server-fiver.domain.com") && ([string tolower [HTTP::uri]] == "/index") }{
HTTP::redirect https://[HTTP::host]/location/
}
send the client to the server when requesting this catalogue
if { [string tolower [HTTP::uri]] starts_with "/location/" } {
pool my_pool member srv-one-games001-test 443
}
}
If there's only one domain for the VIP it is not necessary to have both conditions in the first if statement.