: Can I have a SSL certificate for a domain name that redirects? I have registered a domain name only for forwarding users to my original website. www.secondarydomain.com -> www.primarydomain.com
I have registered a domain name only for forwarding users to my original website.
secondarydomain.com -> primarydomain.com
I already have a SSL certificate for my primary domain. The redirects for www.secondarydomain.com forward to www.primarydomain.com, the way that I expect.
But if the user goes to www.secondarydomain.com, it throws an error. I'd like to get an SSL certificate and ensure that the HTTPS version of the secondary domain gets redirected to the primary domain as well.
My host for my primary domain doesn't allow me to add any more domains to my account. What can I do ?
More posts by @Kaufman445
3 Comments
Sorted by latest first Latest Oldest Best
It is essential that both domains (secondarydomain.com and primarydomain.com) are secure with SSL certificate.
You should confirm which SSL certificate you have purchased.
If you have single domain SSL certificate you need to purchase another certificate for your secondary domain, in this case you need to manage two different certificates for both domains like order configuration, renewals, etc.
In another scenario, you can use multi-domain SSL to secure your both domains using a single certificate.
I am assuming apache running on your host and with hosting for your secondarydomain.com.
In your secondarydomain.com root folder put the following code into a .htaccess file
RewriteEngine on
RewriteRule ^(.*)$ www.primarydomain.com/ [R=301,L]
This will redirect all requests to your secondarydomain.com to your primarydomain.com
Similar question with answer
Yes, you can. Either buy multi-domain certificate if it's close to the end of primary domain certificate, or buy the certificate for the secondary domain only.
My host for my primary domain doesn't allow me to add any more domains to my account. What can I do ?
Anyway you have somewhere redirect configured from secondary to primary. If it is just redirect and doesn't allow you to add a certificate - you need another hosting for the secondary. The certificate should be added in the same or similar way like you did for the primary. Eventually, you can consider secondary as an empty website which contains nothing but redirect, and buy the cheapest hosting which allows you to add an certificate.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.