Magento 1.x
In order to configure your Magento 1.x website to with the HTTPS protocol:
- Login to the Magento admin panel
- Go to the ‘Systems’ tab and click on ‘Configuration’
- Then go to the ‘General’ section and click on ‘Web’
- Now expand the secure section and modify the Base URL to the following:
- https://yourdomainname.com/
- Modify the value of these attributes – ‘Use Secure URLs in Frontend’ and ‘Use Secure URLs in Admin’ to ‘Yes’
- Save the changes
Magento 2.x
In order to configure your Magento 2.x website to work with the HTTPS protocol:
- Login to the Magento admin panel
- Go to ‘Stores’ >> ‘Configuration’ and click on ‘Web’
- Next, expand the ‘Base URLs (Secure)’ section and modify the URL present in the ‘Secure Base URL’ to:
- https://yourdomainname.com/
- Modify the value of these attributes – ‘Use Secure URLs in Frontend’ and ‘Use Secure URLs in Admin’ to ‘Yes’
- Save the changes by clicking on ‘Save Config’
Whether you are changing the URL for Magento 1.x or Magento 2.x, your final step is to clear the Magento cache to ensure that the changes are implemented and displayed.