Irule to strip out

My question to you is could the F5 be configured to take any https://aaa.bbb.gov/internal/\* requests, strip out the /internal/ and forward the remaining request https://aaa.bbb.gov/\* to a pool of Servers. Thanks a lot.

Absolutely. Something like this:

when HTTP_REQUEST {
    if { [string tolower [HTTP::uri]] contains "/internal" } {
        HTTP::uri [string map -nocase {"/internal" ""} [HTTP::uri]]
    }
}

Let me try to apply it and thanks for your quick reply.