.htaccess https redirect?

HI, I just installed an SSL cert on my server for Stripe to work. Now my site has two urls http://domain.com and https://domain.com.
I placed

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://domain.com/$1 [R,L]

in my .htaccess file but I still have two urls. Any suggestions on what I should be doing? Thanks.