You can send the traffic wherever you like if you are going through an F5. You setup xxx.com which points to your VIP address and yyy.com as a pool member. Traffic reaching xxx.com will bring up the content for yyy.com. This will pass all the traffic through your BIG-IP.
Thanks. But i am not looking in to this. Let me say user is trying to access xxx.com and i want to redirect this website using irule to yyy.com. In this case user will finally see yyy.com but i need this to he hidden. Even thought it gets redirected to yyy.com he should be seeing xxx.com in the url
Is there a reason that you don’t want to use the example Aaron linked? It’s a bit large, but it’s a very robust solution if you’re looking to do this sort of thing in production.
There are simpler ways of doing it, but they don’t account for the possible scenarios that crop up.