RewriteEngine On

# redirect http ke https
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

# redirect non-www ke www
RewriteCond %{HTTP_HOST} ^tekunin.com [NC]
RewriteRule ^(.*)$ https://www.tekunin.com/$1 [L,R=301]