How to force SSL for all sub-sites in WPMU

Hi there.

We have bought a Wildcard SSL so we can have SSL on all sub-domains. How can we force https:// for all sub-domains?

Thanks for your help!

  • Sajid
    • DEV MAN’s Sidekick

    Hello Urbano,
    Hope you are doing good today :slight_smile:

    If you are using Domain Mapping plugin then you can enable Force http/https (Only for original domain) option from Network Dashboard -> Settings -> Domain Mapping.

    Also, try this plugin, it does not mention support for MultiSites but you may try it out since it added the code in .htaccess file that shared across network so that may work.

    Or you can also add the following code in .htaccess file to redirect http to https.

    Please modify your .htaccess so starting from the "RewriteEngine On" line it would go like this:

    RewriteEngine On
    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

    Take care and have a nice day :slight_smile:

    Best Regards,
    Sajid

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.