OliverS_221234
Sep 21, 2015Nimbostratus
Redirect URL with URL attached
Hi,
I'm new to F5 and have a question regarding URL redirect. The task is to change the server URL but leave the URL path untouched. An example would be:
redirect www.company.de/abc/xyz/ to www.company.com/abc/xyz/
Is there any way how I can achieve this? Right now I'm simply redirecting the domain part of the URL, but any user is then redirected to the main page instead of the requested URI.
My iRule looks like
when HTTP_REQUEST { if {[HTTP::host] equals "some.company.de"} { HTTP::redirect "https://some.company.com" } }
Any suggestion is appreciated. Best regards,
Oliver Stock