Multisite, SSL certificates, and eCommerce

Hello,

Anyone running a multisite network handling eCommerce?

How are you handling the SSL certificates?

I bought a multi domain SSL certificate and used the first 3 SANs that came with it to protect two of my customers. I thought I just logged in to WHM and installed the certificate and that was it, but it turns out that no. Here’s where things get tricky for me.

I was told by my web host that I need to create a new account in WHM for cPanel using my client’s domain and then install the certificate under that account. Fine, I went ahead and created the account.

I went back to the registrar and changed the name servers of my client’s domain to match the ones from my server, but now all I get is

Forbidden

You don’t have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

I can’t see the website. How are you guys with a WordPress eCommerce network handling this to make it all work. Is there a way to have all the domains and certificates under one cPanel account so I can install the respective domain certificates in there?

Thanks,

Jaime

  • Nastia
    • Support Rock Star

    Hello @jaime, I hope you are well today!

    I’m sorry to ear you have this issue.

    You need to force SSL to WordPress setup

    Please paste the following code into wp_config.php:

    define('FORCE_SSL_ADMIN', true);

    Once you do this, please edit your .htaccess file:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{SERVER_PORT} 80
    RewriteRule ^(.*)$ https://www.mysite.com/$1 [R,L]
    </IfModule>

    Please, replace http://www.mysite.com with your site URL.

    Don’t forget to backup your entire site before you make any changes to prevent you from losing everything if something goes wrong.

    Please have a look at the following article:

    https://premium.wpmudev.org/blog/ssl-https-wordpress/

    I hope this helps! If you require any further assistance, please let us know!

    Kind Regards,

    Nastia

  • Jaime
    • Site Builder, Child of Zeus

    Hi @Nastia

    Thanks for your prompt response. I have no issues running SSL on the main site and it’s sub sites. The issue becomes when trying to protect a mapped domain for a subsite using the multidomain SSL certificate. That’s when I get the error.

    I just spoke to my web host and he understood what I was trying to achieve. They’re making some changed as I type. Let’s see how it goes.

    Thanks and have a great day!

    -J

  • Jaime
    • Site Builder, Child of Zeus

    Yep, the web host solved this and showed me how to do it.

    Pretty much under your own cPanel account create an Addon domain. The root you set it to the /public_html folder and not the one it tries to create.

    Thanks once again.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.