Forum Discussion
zeiss_63263
Historic F5 Account
"user would try to access www.test.com but it needs to be redirected to www.test.abc.com"
The elephant in the room is whether you actually own test.com.
After that, you don't need rewrites or redirection, you simply need to point the DNS record to the same IP as www.test.abc.com and tell the web servers that serve www.test.abc.com to serve the same page(s) when the HTTP "Host:" header contains www.test.com.
Of course if your webpages contain hard links (rather than relative ones) you'll need to do some STREAM changes to alter URLs-on-the-fly, per the post from Minn.
MSK_222682
Feb 04, 2016Nimbostratus
Hi Zeiss,
We do not own test.com and therefore the problem. Let me try the iRule given by Minn and get back to you all.
Thanks for the quick response.
Sai