HTTPs to HTTPs redirection

My virtual server : 1.1.1.1 my domain : x.x.x.x my old domain y.y.y.y which point also to 1.1.1.1

Am trying to redirect to the redirection failed because of ssl different domain name HTTP::redirect “https://www.domain.com[HTTP::uri]”

just extra info: am running client side profile and will not run server side profile

Do you have any irule in place for redirection