I am trying to setup a website where we would like to redirect the URL for a couple of different cases. The cases are below:
- If port 80 then force port 443
- If URL = support.example.com then force URL = support.example-1.com
We would like to first require all traffic to be on HTTPS and then require that one of our domain's when requested (since it resolves to the same box and due to our SSL certificate) is redirected to another one of our domains. We are able to get the force SSL to work, but we cannot seem to find a mod_rewrite rule that will work when https://support.example.com is requested to force it to https://support.example-1.com.
Any help that you can provide would be greatly appreciated. Thanks in advance.