iRule to rewrite HTTPS URL

have an issue where need to rewrite https URL received from a user to another url going to the backend servers.

user sends to https://2.2.2.2/something/uri/here

f5 rewrites the url to the backend server with this example: https://mybackend.domain.com/something/uri/here

you can assign traffic policy to the virtual server

the requirements have changed.  Now mgmt wants to change the Host: <name> in the client HTTP packet to a different name, regardless of what the client is sending as a Host in the packet.  So i created this irule, but if there are multiple host header this will replace the last one.

i was looking at the traffic policy, but i cannot get it work, because the host header could be anything.  The traffic policy does not seem to like wildcard characters.

when HTTP_REQUEST {
HTTP::header replace Host “<Hostname>”
}