Update:
I have now managed to get the bulk of the irule working now. I can happily navigate the external site (with the browser re-writing to the main site) sucessfully.
However, this only works when the target pages of the external site are http.
When I click on a link/page that the external site would normally redirect to https, the browers comes back with the following error..
This web page has a redirect loop
The web page at https://cns.metrobankonline.co.uk/more/Contact_Us/Default.asp has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.
Here are some suggestions:
Error 310 (net::ERR_TOO_MANY_REDIRECTS): There were too many redirects
Any ideas how to ensure the external sites redirects do not create the redirect loop?
Many thanks