Question: how to redirect http to https in wordpress using htaccess?
Answer: <IfModule mod_rewrite. c>
RewriteCond %{HTTPS} off.
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>