dkinsler_23191
Oct 13, 2010Nimbostratus
Redirect without rewriting host portion of URL
Hello all, I have a question about Redirecting. I have two VIPs and each has its own URL. I want one to redirect to the other under certain cconditions but I dont want the URL to change hosts. For instance....
I have mydomain1.com and mydomain2.com This Irule would be placed on mydomain1.com to redirect the contect to mydomain2.com if the URI starts with /stuff.
when HTTP_REQUEST { if { [HTTP::uri] starts_with "/stuff"} { HTTP::redirect "http://mydomain2.com/[HTTP::uri]" } }
The problem is, I dont want the users browser to see the domain change, but I want to get the contect from mydomain2.
Anybody have any ideas on how that should be done? Both vips are internal to the LB.