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)
Best Answer
The 307 redirect is in real a
307 Internal Redirect
done by the Chrome Browser because the domain is known to require/supportStrict Transport Security
So its not done by your Magento.
See also: https://stackoverflow.com/questions/2068418/whats-the-difference-between-a-302-and-a-307-redirect/29988907#29988907