Can someone please tell me if it is possible to achieve the scenario I am trying to accomplish using iRule?
We are currently using a SaaS-based application which has a weird URL and it is not easy to remember (e.g. https://214124124.sdsddasd.com:10020). What I am looking to achieve is that when a user enters the URL https://mytestsite, it should be able to redirect to the SaaS-based application without changing the URL in the address bar. It should stay mytestsite.
Of course if you have control over the clients browser you could disable the security and return a page with an iframe that loads the remote site… but that’s not a good idea.
The URL bar is the mechanism by which the user checks to make sure they’re accessing the page they thought they were accessing. It should show you the actual pageURL, the certificate in use, whether that’s the right cert (trusted) or not etc.
If you application requires hostheader to be 214124124.sdsddasd.com and not mytestsite to work, then you will need to also modify the host header on the wire. This function may not be needed, it depends on your app, it is a function popularly known as “ProxyPass”. You can Google “ProxyPass irule” or alternatively do it with LTM Profiles, if such functionality is required.