Preserve URL prefix during redirect
We're migrating our client URLs to a new domain. We have one VS for all clients as they're directed to their content at the server level.
Here's what needs to be done:
the VIP and DNS name is prod.stiniflap.com The new domain is prod.information.com
The Acme client would use acme.prod.stiniflap.com and at the DNS level would be forwarded to the prod.stiniflap.com VS.
I need to put a redirect rule in place that directs the client to the new domain but maintains their the "Acme" portion of the URL.
Here's what I've come up with:
when HTTP_REQUEST { if {[string tolower [HTTP::host]] ends_with "prod.stiniflap.com"} { HTTP::redirect "https://prod.information.com[HTTP::uri]" } } }
Unfortunately I don't believe that this will maintain the client name with the new domain.