Here are the current rules I have:
RewriteEngine On # add www, https, trailing slash RewriteCond %{HTTPS} !on [OR] RewriteCond %{HTTP_HOST} !^www\\. [NC,OR]