HTTP to HTTPS (SSL) website conversion

In order to totally convert a website to HTTPS/SSL you need to take the following steps:

  1. Convert all urls from http to https via
    1. A database rewrite plugin like "WP Migrate DB".
    2. Or via the WPCLI command search-replace like: wp search-replace --precise --all-tables OLD NEW.
  2. Make sure there is an SSL certificate installed for that domain, preferably via AutoSSL.
  3. Add an http to https redirect in htaccess for any url that might have been missed.