Forum Discussion
Gazzu
Nimbostratus
Nov 10, 2017I-rule redirection
we have a DNS record "; this record is actually a CNAME for one of our load balancers which is a1.www2.xyz.com (10.xx.yy.60)
This load balancer is HTTPS forced so it goes to HTTPS all the time
I...
Samir_Jha_52506
Noctilucent
Nov 10, 2017Yes, You can solve with help of iRule. Please remove default redirection & apply customize iRule like below. Make sure both DNS record should match with A & CNAME.
Let us know if any question?
when HTTP_REQUEST {
if {[string tolower [HTTP::host]] eq "www.xyz.com"}{
HTTP::redirect "http://[HTTP::host][HTTP::uri]"
}
elseif {[string tolower [HTTP::host]] eq "a1.www2.xyz.com"}{
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
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