This htaccess snippet should do it for you -- redirects non-WWW to WWW mode, redirects non-HTTPS to HTTPS mode:
RewriteCond %{HTTP_HOST} ^example\.com$
RewriteRule ^(.*)$ "https://www\.example\.com/$1" [R=301,L]
Sometimes for certain multi-app installs on a hosting account, you may work with "addon domains". These are basically masked subdomains of the host domain. In that case, you can add a couple more lines to really protect those utility routes from being used and forward them to HTTPS WWW as well:
RewriteCond %{HTTP_HOST} ^example\.hostdomain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.hostdomain\.com$ [OR]
RewriteCond %{HTTP_HOST} ^example\.com$
RewriteRule ^(.*)$ "https://www\.example\.com/$1" [R=301,L]
Now where you put this depends on how specific your existing 301's are. If they use HTTP (or various WWW) explicit routes, then this snippet goes after them. If they are more flexible, or relative, and not based on HTTPS/WWW then the snippet can go before them, or wherever you like.