4

I've setup the multisite on a fresh installation of WordPress.

Then I created some other websites, so, in the end, I have something like this

I have then installed an SSL digital certificate, so I changed the URLs of the websites to match the HTTPS scheme:

To change the scheme I gone to Sites > All Sites, then clicked on each site and in tab "Information" (the first one) I simply changed the scheme and saved.

This worked.

The only site left without the https is http://example.com: for this, in fact, I have cannot change the URL.

If I go to Sites > All Sites and click on it, in fact, in the first tab "Information" the URL is not editable and is in the form http://example.com, without the https scheme.

How can I change it?

I'd like to change it now, before I start to install plugins and write articles.

Any suggestions?

4 Answers 4

1

I would suggest editing the wp-config.php file, and adding:

define('WP_HOME','https://example.com');
define('WP_SITEURL','https://example.com');

However for multisite here it says you should edit DOMAIN_CURRENT_SITE and PATH_CURRENT_SITE, if there is such thing defined in a multisite wp-config.

First suggestion is based on this article.

5

I would just:

  1. Comment out the multisite code in wp-config.php
  2. Login again to WP
  3. Go back to settings and reading as if a single site.
  4. change http to https
  5. uncomment multisite code in wp-config.php
  6. Proceed as normal

Done

1
  • Thanks a million. This was a live saver... . You might change wp-content to wp-config... . Commented Oct 2, 2020 at 18:03
1

It worked for me!

In fact, I just had to temporarily change:

define('MULTISITE', true);

to

define('MULTISITE', false);
1
  • Is that Jesus's answer or D.Dan's answer that you're agreeing with? (I think Jesus was effectively suggesting the same thing by commenting out the MULTISITE define.)
    – Rup
    Commented Jan 30, 2021 at 13:52
1

It seems some updates to WP core have improved things. I had a warning in Site Health, saying that the site wasn't configured to use HTTPS. 'Click here to fix it' it said. So I did, and now the site uses https. Your mileage may vary but it's by far the easiest thing to try first.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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