I have to following configuration in my .htaccess. The first rule puts https before the URL and the second puts www before the URL, if not set already.
# http