2

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.

  • Please go to admin side : system->configuration->web->Url Options and set the flag Auto-redirect to Base URL to No. – Abdul Nov 10 '15 at 5:41
  • 2
    Did you change base secure url & unsecure url to https at magento system ................Please check the setting – Amit Bera Nov 10 '15 at 5:45
  • its not work.any suggestions to fix it – srinath madusanka Nov 10 '15 at 5:47
  • 1
    yes @ Amit Bera that's the the issue please post your comment as answer to accept – srinath madusanka Nov 10 '15 at 5:50
1

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/
  • 1
    After changed the secure and unsecure urls in core_config_data table, you need to reindex. – Teja Bhagavan Kollepara Nov 12 '15 at 9:14
  • Did you changing base secure url & unsecure url to https at magento system ...............in the setting it worked as @Amit Bera i think your solution also valuable for that kind of situation i upvoted it – srinath madusanka Nov 13 '15 at 1:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.