• Resolved Tony Zeoli

    (@tonyzeoli)


    I’m trying to update the primary site URL from http to https. I’ve gone through and changed the url in the database in the _options and site_meta tables for the primary site, but the network admin screen for the primary site simply won’t change to https.

    See: https://cloudup.com/cR_QI3SeTLZ

    I’ve also commented out the lines in wp-config for home and site URL to make sure that’s not the culprit.

    Any ideas?

Viewing 7 replies - 1 through 7 (of 7 total)
  • That tells me that however you changed your urls in the database, you didnt change it for all tables. Just a quick guess, I think that comes from the wp_blogs table.

    Thread Starter Tony Zeoli

    (@tonyzeoli)

    Okay, I’ll look at that.

    I did read this: https://premium.wpmudev.org/forums/topic/how-to-change-url-for-wp-multi-site

    In point number 4, it says:

    Table wp_blogs: Each subsite will have an entry here. You’ll need to update the domain column for each row, (similar to what you did in the previous step) This column is for the domain only, not the URL, so no “https://” this time.

    I take that to mean you shouldn’t add https in front of the domain name in the wp_blogs table.

    > I take that to mean you shouldn’t add https in front of the domain name in the wp_blogs table.

    Actually I think that is correct. It will still show up as http but shouldnt matter.

    Thread Starter Tony Zeoli

    (@tonyzeoli)

    Okay, thanks. I’ll leave it as is then.

    • This reply was modified 7 years, 7 months ago by Tony Zeoli.

    I didnt mean to say “it shouldnt matter.” I dont think you can change the http to https. Its hard-coded into core. If it is a problem, you need to figure out something else for url rewrite. Like maybe a plugin.

    • This reply was modified 7 years, 7 months ago by jkhongusc.

    I use a sub-domain installation of WP Networked Multi-site. When I attempted to use HTTPS, there was no problem with the “main site” (example.com). When I surfed to it using the https:// prefix, the site was displayed and https:// appeared in the URL entry area.

    However, I got a failure when attempting to go to any of the blogs (e.g. some-blog.example.com). That is because one needs a wild-card SSL Certificate (i.e. for *.example.com)

    The networked setup has no place in the Settings–>General to enter the site URL. It appears smart enough to continue to use whatever protocol (HTTP or HTTPS) that you used to surf to the site in the first place.

    Thread Starter Tony Zeoli

    (@tonyzeoli)

    @johngold-1

    In the network admin panel, there is a capital SITES Page, which displays all the websites in your network that you’ve registered. When you edit a site, it has its own settings page. There is where you will update The site URL twice.

    You should have entered the wildcard as an a record in your DNS panel at your domain name registrar or cloud flair or equal vote service. But I don’t believe Cloudflare’s free SSL supports wildcard SSL on subdomains. So you have to register each sub domain on its own in the DNS panel as AC name record.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change primary site url from https to https’ is closed to new replies.