• I have a multisite setup hosted on Siteground. It has 8 subdomain sites.

    1) I setup Let’s Encrypt for the primary domain. I added a wildcard certificate as well.

    2) Added this to htaccess file:
    RewriteEngine On
    # force HTTPS
    RewriteCond %{HTTPS} off
    RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    (before this:)
    # BEGIN WordPress

    3) Added this to wp-config:
    define(‘FORCE_SSL_ADMIN’, true);

    4) I also tried “really simple ssl” plugin, but didn’t fix the issue so removed it.

    The issue I’m experiencing is that from the backend, if I just select a sitename from the dropdown “My Sites” menu, without selecting the submenu for the site, it loads securely with https. The submenus for each site, “dashboard, new post, and manage comments” all load https properly too. However, if I select “visit site” for any of the subdomain sites, they’re loaded with http instead of https. This doesn’t happen with the primary domain.

    In the network admin dashboard, under edit site, I see all my sites are listed with http addresses, but don’t see a way to change that to https. (In contrast, isn’t that possible with a single site installation?)

    I added the Let’s Encrypt certificates after I’d created all the sites, so everything WAS http when initially created.
    Running WP 5.2.1 at present; Twenty Sixteen, Seventeen, and Nineteen themes on the sites.

    Is this a bug, or is there somewhere in the site configuration I can reset things to https site-wide?

    Siteground mentioned I should create certificates for all subdomains, but since WP multisite generates what I think of as virtual subdomains, I don’t want to create duplicate, potentially conflicting, subdomains in their control panel. Their control panel requires you to use a drop-down menu to select subdomains you’ve created there, and then you add the Let’s Encrypt certificates to them. I’m correct in assuming that would create problems for the multisite subdomains, right?

    Thanks for any help anyone can offer!

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • so if I understand correctly you have a multisite installation on subdomain.
    The first thing I would do is check if your hosting actually creates the HTTPS variable.
    Create test.php with this code

    <?php
    if(!isset($_SERVER['HTTPS'])){
    $_SERVER['HTTPS'] = "Don't exists";
    }
    echo $_SERVER['HTTPS'];

    Run with http and https your main domain or subdomain.
    I don’t know if you encounter problems when editing secondary sites from your network.

    it is likely that the HTTPS variable does not exist on the subdomains and therefore you cannot redirect.

Viewing 1 replies (of 1 total)

The topic ‘Multisite – My sites/Dashboard vs View Site https/http discrepancies’ is closed to new replies.