Forum Discussion
DM_5174
May 10, 2011Nimbostratus
I have tried this below and it still does not work. Can anyone help?
1. Rewrite without Redirecting the incoming URL request from http://www.URL1.com to https://www.URL2.com
2. After the rewrite, the user will login to the web page, so all request/HTTP post after that goes to the new URL2 link.
I am still getting the "trusted site" pop-up errors and am wondering if this has something to do with how the redirect works and the
nature of Internet Explorer....
when HTTP_REQUEST {
Check the host header value (set to lowercase)
switch [string tolower [HTTP::host]] {
"www.URL1.com" {
Replace the Host header
HTTP::header replace Host "www.URL2.com"
} else {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
}