Apache: redirect non-www to www & HTTP to HTTPS with a single domain security certificate

I recently had to set up a new virtual host on Apache for work, and I ran into a small problem. I wanted to ensure that visitors to the site are using HTTPS
A collection of 1 post
I recently had to set up a new virtual host on Apache for work, and I ran into a small problem. I wanted to ensure that visitors to the site are using HTTPS