How to configure and Install SSL Certificate for Multisite Wordpress?

I have a droplet with multiple wordpress instances running? I would like to install SSL certificate for one of the domain? Example I have and running on the same droplet.

I would like to have moved to, while will remain as non-SSL. The ssl certificate is from godaddy.

I have update the .htaccess to use <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://site1.coml/$1 [R,L] </IfModule>

also when I install and change the file in sites-available , the is not loading. without installing SSL, both and are working fine.

Kindly Help?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

You will likely want to create 3 VirtualHost configurations in /etc/apache2/sites-enabled

  1. This will be the name based virtualhost for and will be set up fairly standard but ensuring that AllowOverride All is set to enable Apache to use WordPress’ .htaccess files.

  2. This will be another port 80 http definition which will point to’s directory. Since you are using an .htaccess redirect this can also be fairly standard since we can expect anyone hitting this virtualhost will be redirected to the https version via the .htaccess file.

  3. This third virtualhost will be IP based rather than name based and will listen on port 443. This is where you will configure your certificates. This virtualhost should be pointed to the directory for

Here are a few guides that will be helpful in setting this up: