Forum Discussion
Mike_Bednarck_1
Nimbostratus
Aug 18, 2011Redirect 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'...
hoolio
Cirrostratus
Aug 18, 2011Hi 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
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
