DM_5174
May 10, 2011Nimbostratus
HEADER Rewrite without redirect trusted site Pop-up error on Internet Explorer..
Hi All,
We have an issue where one URL shares the same IP address with the other (e.g. URL1=1.1.1.1 and URL2=1.1.1.1). We want to eventually decomission URL1 and have users go in to URL2 but the trusted site pop-up is driving everyone crazy.
Currently we have an I-Rule on the LTM that when users types in http://www.URL1.com, they get redirected
by the i-rule to https://www.URL2.com. This however gives an oop-up error if you're using Internet Explorer
as seen below. You have to click yes or no to continue or add the domain in your trusted site list to avoid
future popups. This needs to be transparent to the users.
The current webpage is trying to open a site in your Trusted sites list. Do you want to allow this?
"Current site: http://www.URL1.com"
"Trusted site: http://www.URL2.com"
Rewrite Host Header iRule
when HTTP_REQUEST {
if { [HTTP::host] equals www.URL1.com } {
Rewrite host
HTTP::header replace Host www.URL2.com
if nothing matches above, still redirect from HTTP to HTTPS for this session
} else {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
Question: Can we have an i-Rule that rewrites the URL when the users connects from http://www.URL1.com to HTTPS://www.URL2.com transparently for the connected users so it looks like their initial connects seems to come in on http://www.URL2.com so that they do not get the "trusted site pop-up". All sessions after this rewrite should connect as the new .com?Thanks,
-DM