hiding redirects

I have a question for writing an iRule on a 9.x

The application people would like the BIG-IP to take one URL and redirect to another URL or specify a URI under the first URL or redirect to a second URL altogether.

The trick is that the place we’re redirecting to must still “think” that the request is coming from the original URL and the users’ browser should still show the original URL

Example

Will need an 80 to 443 redirect…

http://training.company.com goes to https://training.company.com

and

https://training.company.com/sales needs to go to https://sales.company.com but still “think” its coming from https://training.company.com (some sort of hidden redirect?)

and/or

https://training.company.com/device1 needs to go to https://device.company.com but still “think” its coming from https://training.company.com

So, how do I maintain the original URL on the user’s browser while still redirecting to a new URL?

One more item to complicate things is that the BIG-IP houses the SSL cert for the training site.

Thanks for your time…

David

Post this to the iRules forum and we’ll see if we can get you some help. iControl is our remote management API.

-Joe