How can I redirect HTTP to HTTPS with a local self assigned SSL certificate in my .htaccess?
The condition should be:

RewriteCond %{HTTPS} !=on


(You were missing the = sign.)

For more info, see our help article, How do I force SSL for CP requests?