Forum Discussion
Brian_Kenworthy
Feb 10, 2011Nimbostratus
HTTP>HTTPS Redirect to different domain
Hi all, this should be pretty simple....hopefully.
I have a simple HTTP>HTTPS redirect in place for a domain --> HTTP::redirect "https://[HTTP::host][HTTP::uri]"
We have several su...
hooleylist
Jul 30, 2012Cirrostratus
Sure, just add the domain suffix to the redirect:
when HTTP_REQUEST {
if { [string tolower [HTTP::host]] ends_with "domaina.com" } {
HTTP::redirect "https://[getfield [HTTP::host] "." 1].domainB.com.sg[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