The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Multiple domains & 1 SSL certificate

Discussion in 'General Discussion' started by Ludooo, Aug 30, 2016.

Tags:
  1. Ludooo

    Ludooo Registered

    Joined:
    Aug 30, 2016
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    The Netherlands
    cPanel Access Level:
    Root Administrator
    Currently I have three domain names: .eu, .nl, .com. The .eu extension has a SSL certificate. The .nl and .com domain names redirect to https-domainname.eu.

    Now, when you navigate to http.eu, http.nl and http.com you will be directed to https.eu
    But if the visitor goes to https.nl or https.com (the domain names that only redirect to .eu and dont have a SSL certificate) he will see the "Your connection is not private" page. This is of course highly undesirable.

    I know this is because those two domains don't have a certificate. But is there a way to make this work: redirect the https variants of .nl & .com to https.eu (with one certificate)?

    I am quite new to SSL certificates and would like to lean more about it, if you have further questions, please ask. Any advice is appreciated!
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,664
    Likes Received:
    646
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    The following StackOverflow thread should provide you with some Mod_Rewrite rule examples to use in your .htaccess file:

    Https to http redirect using htaccess

    Note the example is intended to redirect from "https" to "http", but you could change the destination to the secure URL. You may also want to consider installing a SSL certificate on each domain name through the AutoSSL feature:

    Manage AutoSSL - Documentation - cPanel Documentation

    Thank you.
     
Loading...

Share This Page