Forum Discussion
DM_5174
Nimbostratus
May 10, 2011HEADER 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 t...
DM_5174
Nimbostratus
May 10, 2011I 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]"
}
}
}
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects