Changing a site network to https

Hello
I have a site network that I originally build on http. I used subdomains to developp the sites and then when ready I set a domain with https using the domain mapping plugin. Actually I have some problems now because of passing the sites from http to https.
Today there is Let's encrypt solution for setting https for everysubdomains so if I set such a solution today for sur I will begin setting everything in HTTPS and would not have any problem.

But this is an existing websites network and I want to migrate it to https.
What procedure do you recommand today to migrate the site network it self to https (not the mapped domain that is easy with domainmapping plugin.) ?

To be precise as 2nd question : what I have today is that I have notice for mixed content that briefly appear when page are loading. If I display the console I see that it came from a JS that comes from domainmapping plugin : the js load from the main network site without https. http://NETWORKMAINSITE.COM/dm-sso-endpoint/1482060552/?dm_action=domainmap-check-login-status&domain=MAPPEDDOMAIN

  • Luís

    Hi Sylvio ,

    Hope you're doing well today!

    If I understood well, you just want to use the HTTPS on the main site right?

    Because for all the subdomains you will need a Wildcard SSL. A wildcard SSL certificate only covers 1 domain and all subdomains of that domain, but, it will only work for the unmapped original URL, once you map the domain, the SSL cert will not be valid.

    For domain mapping, you need a multi-domain certificate or SNI. However, Let'sEncrypt has an option for multi-domain certificates (for free) if your webhost supports let'sEncrypt.

    https://letsencrypt.org/

    We have some cool articles in our blog regarding to "How to Use SSL and HTTPS in Wordpress" that I think may interest you:

    https://premium.wpmudev.org/blog/ssl-domain-mapping/

    https://premium.wpmudev.org/blog/lets-encrypt-ssl-certificate/

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

    I hope this information has been helpful. If I can help you in this or other questions, please let me know!

    Cheers, Luís

  • Sylvio

    Hello.
    Thank you for answer. I don't need necessary a wildcard certificate as I can create one Let's encrypt certificate per subdomain. This is not the problem.
    I don't know if it's *just* the main site that need to pass in https or if there is another setting to change. In example I don't know what setting use domainmapping plugin for the javascript I wrote.

    Let's say yes I need to change in https the main site.
    And maybe if there is another "base url" for the site network or a base schema as well.

    I often got infinite redirection loop when I tryied to switch to https (forced) on standalone sites with different plugins / settings... that here for a site network, I would like to know if there is a recommanded procedure.

    I m quite used to generate certificat and or changing htaccess scripts. But here in example I tried to set htaccess to force https (unconditionnal for all domains/subdomains) and then the URLrewriting or domainmapping I don't know was not working anymore and all links opened the homepage of the site... (on mapped domain).

  • Sylvio

    Hello
    Any tipps about my question ?
    I mean this https://premium.wpmudev.org/blog/ssl-domain-mapping/ talk about mapped domains but not about the base url schema used by the base network setup.
    I think there is some config somewhere that could make a problem like redirect loops, maybe the URL of the main (first) site ? or something else ?
    The thing is that the main site is not a public site with content yet, so the solution for me could be "search and replace" in the MySQL tables if somebody can tell me this could be a clean solution. I m not afraid about creating bad link on main site that I would have to build later.

  • Luís

    Hi Sylvio ,

    Hope you're doing well today!

    Firstly, sorry for the late reply and all the problems it may have caused.

    If I understood well your question and from what I searched, you don't necessary need to use HTTPS on the main site. You can use just the SSL on the mapped domains:

    https://halfelf.org/2014/ssl-for-one-domain-on-multisite/

    Domain Mapping allows you to set the schema to be used on the mapped domain, but in this case, you should make sure that is not using any "forcing options" on Domain mapping (network admin panel -> Settings -> Domain Mapping) and use a plugin like WordPress HTTPS, that allows you to force on a per site basis:

    https://wordpress.org/plugins/wordpress-https/

    Also, from what I know, you can’t install multiple SSL certificates per IP address unless you use a Server Name Indication (SNI).

    I hope this information has been helpful. If I can help you in this or other questions, please let me know!

    Cheers, Luís

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.