Here we will cover how to force HTTPS on a PrestaShop site.
This resolves the issue of a PrestaShop site not showing as secure, or showing as insecure with a broken padlock in the browser.
Forcing HTTPS can be done from the PrestaShop dashboard in the General settings by switching on the Enable SSL option.
Related Articles
PrestaShop Reset Admin Password
Enable/Renew AutoSSL on Shared Server
Forcing HTTPS through the PrestaShop Dashboard
CAUTION: Forcing HTTPS in .htaccess can result in breaking the site theme. For this reason, it is recommended to always force HTTPS through the dashboard using the method below.
- Log into the Prestashop dashboard
- Expand the Shop Parameters menu in the pane on the left
- Click General
- Select Yes for the Enable SSL option to force HTTPS on checkout and account pages
- Select Yes for the Enable SSL on all pages option to force HTTPS on all PrestaShop pages
This article covers PrestaShop versions 1.7.x.
If an updated version is available and not documented here, drop us a comment so we can work to get it updated for you as soon as possible!