-1

This question already has an answer here:

I have 3 domains: domain.com, domain.org, and domain.net
I have an SSL cert for .org, but not .com and .net.
I would rather not have to purchase SSL certs for all 3 TLDs.
How do I redirect the .com and .net domains to .org ?
Normal HTTP apache redirection methods don't seem to be working.

Thanks in advance.

marked as duplicate by yoonix, Jenny D, kasperd, user259412, Ward Jul 31 '17 at 0:06

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    If you want HTTPS connections to not get an error, you need a HTTPS certificate for that connection. What is unclear about this? – yoonix Jul 11 '17 at 22:55
  • so I can't redirect one https to another? – xivix Jul 11 '17 at 23:01
  • Did you buy / obtain certificates since I answered the question the first time? – yoonix Jul 11 '17 at 23:04
3

If you want to provide HTTPS service on a domain -- even if you're just going to be providing a redirect -- you need an SSL certificate for that domain. There is no way around this.

So, you basically have two options:

  • Get SSL certificates for all your domains. If cost is a concern, keep in mind that Let's Encrypt will issue certificates for free, no strings attached.

  • Don't provide HTTPS service on the extra domains -- provide the redirect as HTTP only. If you've never provided HTTPS service on these domains before, this is probably fine -- nobody is likely to try to load them over HTTPS, and there isn't anything on those domains that needs to be encrypted.

Not the answer you're looking for? Browse other questions tagged or ask your own question.