Forum Discussion
Mike_Bednarck_1
Aug 18, 2011Nimbostratus
Redirect the web browser
Looking for a irule that will redirect the web browser from HTTP://Name_they_are_forcing.domain.com to HTTP://Name_we_select.domain.com. We have the certificate for Name_we_select.domain.com and don'...
hooleylist
Aug 18, 2011Cirrostratus
Hi Mike,
Something like this?
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] eq "name_they_are_forcing.domain.com"}{
HTTP::redirect "http://name_we_select.domain.com"
}
}
Certs won't come into play if you're not using HTTPS. If you don't have a cert for the other domain, you wouldn't be able to decrypt HTTPS requests to redirect them.
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