I don’t see any issue with using traffic policy to redirect to another VIP in https.
should be as followed Conditions
HTTP URI path starts with ‘/URI’ at request time.
Action
Redirect to location ‘https://example[.]com’ at request time.
Worked perfectly fine when I tested it.
You can also use iRule to redirect the traffic to another VIP.
There should be something wrong in your configuration.
What you are trying to achieve is very simple and fully supported.
There is no distinguish between redirecting to HTTP or HTTPs
I found the solution with a redirect to the pool and a special Irule that replace the http request - http:header host and the http:header Location in the response.
I think you are not talking about redirect in the usual HTTP status code 302 redirect, you are talking about using the virtual server to internally send traffic to a different pool and changing the host header.
The other way is to perform a 302 redirect. Here is an iRule which will do that for you:
when HTTP_REQUEST {
if { [HTTP::path] starts_with '/prova'} {
HTTP::redirect "https://target.fqdn"
return
}
}