0

I am trying to redirect all the insecure HTTP requests to HTTPS on magento.

For example :
My site name is : http://www.mysite.nl/
I want to redirect it to : https://www.mysite.nl/

Also i want to redirect all its sub-pages and categories to HTTPS.

For example :
Shop page is : http://www.mysite.nl/shop/
I want to redirect it to : https://www.mysite.nl/shop/

Here is my magento configuration for HTTPS and I am sure there is no any issue with it. - http://prntscr.com/ah9o2p

My .htaccess file : http://textuploader.com/5no6v

I have tried to add some tweak in .htaccess file but it doesnt work :
1. How to redirect all HTTP requests to HTTPS

Is there anyone help me on this?

Thank you!

Community
  • 1
  • 1
  • I'm voting to close this question as off-topic because Stack Overflow is a [programming-related](http://stackoverflow.com/help/on-topic) Q&A site. Your question is not about programming. Perhaps you should post it on http://magento.stackexchange.com instead? – Enigmativity Mar 21 '16 at 07:11

2 Answers2

1

Change your secure and insecure url form admin panel by going into system->confriguration->general->web and change it form there. Apply new url with https

Waleed Ahmed Haris
  • 1,229
  • 11
  • 17
1

First of all select your database from phpmyadmin. Run this command on sql section of phpmyadmin

select * from core_config_data where path like '%base%url%';

You will see all base urls used on magento. Now, to change the base url execute this command on sql section.

update core_config_data set value = 'http://www.mysite.nl/' where path = 'web/unsecure/base_url'; update core_config_data set value = 'https://www.mysite.nl/' where path = 'web/secure/base_url';

The second one will generate secure url with https on your domain.

sagar sapkota
  • 153
  • 1
  • 8