I have set my whole frontend to use HTTPS. But in the headers I see that if I go to http://example.com Magento redirects me to the HTTPS version using 307 redirect. I tried to change this by setting in .htaccess:
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
but it didn't help.
What should I do to make Magento use 301 redirect instead of 307?
(I am using CE 1.9.1.0)