Magento – magento redirect http to https

httpsmagento-1.8redirectSecurity

I want to redirect http requests to https on Magento CE 1.8. I followed the steps below, but none of the methods work:

system->web->secure->Use Secure URLs in Frontend "yes"

In my .htaccess file:

## workaround for HTTP authorization

## in CGI environment



    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]



############################################
  RewriteCond %{HTTPS} off
 RewriteCond %{HTTP:X-Forwarded-Proto} !https
 RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

I also tried: Issue redirecting http to https and changed the file app/code/core/Mage/Core/Controller/Varien/Front.php but it still does not work.

Best Answer

If you want to do redirect http to HTTPS, based on my guess, which Magento version is you are using is not important.
just can follow these steps

  1. your host/phpmyadmin
  2. select your database
  3. find core_config_data table in that
  4. change the secure and unsecure urls here, which is https://www.domain.com/
Related Topic