title: Apache HTTPS to HTTPS Redirection
body: <p>We have a client server hosting our web application using Apache 2.2 &amp; Tomcat 6 in RHEL. I have setup apache re-write rule for http to https redirection and it works fine. We have two DNS names that are used to access the same application. Test1.com and Test2.com. I want all the users trying to access http:// test1.com or https:// test1.com to https:// test2.com. As mentioned, http:// test1.com to https:// test2.com redirection is working fine. I am not able to implement <a href="https://test1.com" rel="noreferrer">https://test1.com</a> to <a href="https://test2.com" rel="noreferrer">https://test2.com</a>.</p>
  
  <p>I have tried Virtual Hosts, ServerAlias, NameVirtualHost, but nothing works. Any suggestions if we can handles this via re-write would help. Any other pointers that might lead to the resolution of this issue will be appreciated. </p>
  
  <p>Thanks</p>