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.

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

1 Answer 1

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/
2
  • 1
    After changed the secure and unsecure urls in core_config_data table, you need to reindex. Commented Nov 12, 2015 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 Commented Nov 13, 2015 at 1:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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