how to configure magento to use ssl?
When you develop an online store there are several factors that have great impact on the profit that you can make from it. Such factors are the design of the website, the products you would sell and the prices you will set. But another key element of great importance is the security you will offer to your customers.
Since they would provide you with their personal information, which in common cases would be sensitive too, they would need to feel safe and protected by any third parties trying to steal their personal data.
To provide the identity and bank details of your clients you should consider using a secure connection on your Magento store. This can be easily achieved by installing an SSL certificate on your domain name and configuring the application to load over https:// instead of http://.
Doing so is relatively easy process and now we will show you how to achieve it on your own.
You should first access the administration area of your store and navigate to Stores > Settings > Configuration:
Next go to General > Web > Base URLs (Secure):
As you can see in the image above you should set several options here:
- Secure Base URL – here you need to enter the exact URL to your Magento application including the https:// prefix in front of it. In case that the script is installed in a subfolder of your domain name you need to enter an URL looking similar to the following one – https://yourdomain.com/subfolder and in case that the store is directly under the domain the URL would look like this one https://yourdomain.com
- Secure Base Link URL – enter the same address as in the previous field.
It is also very important to configure the application to use the secure URLs. This can be done on the same page, as it is shown on the image above, setting the Use Secure URLs on Storefront and Use Secure URLs in Admin options to Yes.
Once you have applied the necessary changes, do not forget to save the changes using the Save Config button at the top of the page: