Reputation: 216
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!
Upvotes: 0
Views: 2353
Reputation: 153
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.
Upvotes: 1
Reputation: 1244
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
Upvotes: 1