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't want to add the Name_they_are_forcing.domain.com to the cert.
- hooleylistCirrostratusHi Mike,
when HTTP_REQUEST { if {[string tolower [HTTP::host]] eq "name_they_are_forcing.domain.com"}{ HTTP::redirect "http://name_we_select.domain.com" } }
- Mike_Bednarck_1NimbostratusI knew this was going to be an easy irule. A few things I did forget - yes it is HTTPS, and second there is a extension to both URLS as in "https://name_they_are_forcing.domain.com/owa" and "https://name_we_selected.domain.com/owa"
- hooleylistCirrostratusSomething like this should work:
when HTTP_REQUEST { if {[string tolower [HTTP::host]] eq "name_they_are_forcing.domain.com"}{ HTTP::redirect "http://name_we_select.domain.com" } elseif {[HTTP::uri] eq "/"}{ HTTP::uri "/owa" } }
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