Forum Discussion
Sean_O_Brien_65
Nimbostratus
Apr 13, 2010iRule forward URL to different domain for http and https
We are planning a website cutover to another (new) existing domain, both going through the F5 currently...
This weekend I will change the DNS to point to different VS on F5 and at that point...
hoolio
Cirrostratus
Apr 13, 2010Hi Sean,
Do you have this iRule applied to both an HTTP and an HTTPS VIP?
Do you have a client SSL profile added to the HTTPS VIP? If so, is the cert in the profile for domain1.com or www.domain1.com?
What is the SSL error?
Do you see any run time TCL errors in /var/log/ltm when you get the page cannot be displayed error?
You could combine the switch cases into one (though this won't change the effect of the iRule). You could also append the originally requested URI to the query string on the redirect:
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"domain1.com" -
"www.domain1.com" {
HTTP::redirect "https://domain1.domain2.com[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