I'm trying to get my site redirected to htpss, but I'm not getting it.

below is the code in htaccess

RewriteEngine On
RewriteCond %{HTTPS} !on [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ https://www.lotericapremiada.com.br%{REQUEST_URI} [R=301,L]
RewriteBase /index.php