Forum Discussion
Daniel_58687
Nimbostratus
Nov 12, 2007Redirecting http to https over dns (host header)
Hello,
i have a problem with mit iis.
I have one ip with any host header domains.
i will redirect web request to http://www.testing.com redirecting
to https://www.testing...
hoolio
Cirrostratus
Nov 12, 2007Hi,
Here's an example that redirects requests which match a specific host header to the same Host and URI over https:
when HTTP_REQUEST {
check if Host header is www.testing.com
if {[string tolower [HTTP::header value Host]] eq "www.testing.com"}{
Redirect to same Host and URI over https
HTTP::redirect https://[HTTP::host][HTTP::uri]
}
}Aaron
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
