I’m using Dreamhost and have secure hosting and a secure certificate. I’m trying to redirect a plain HTTP site to an HTTPS site. I’m a bit confused about doing it.

I want to make `http://www.example.com/` redirect to `https://www.example.com/`

What do I put in what file to make it work?