SSL Settings
Description
SSL (secure sockets layer) is a cryptographic protocol that implies more secure communication.
At the same time, an SSL certificate is the “passport” of your site. Your visitors have authoritative confirmation that they are on your server.
For questions regarding the purchase and installation of an SSL certificate, please contact your hosting provider or system administrator.
Perform all the following actions only after installing the certificate.
1) Go to the section: Settings - Configuration - Site URL, check the box Use SSL and save the settings
2) Go to the section: Settings - Modules and click Clear cache
3) Go to the section: Settings and click Refresh all cache
Force redirection
Open the .htaccess file, which is located in the root of your server
Uncomment the lines (remove the hash in front of the line) that you see below
RewriteCond %{SERVER_PORT} ^80$ [OR]
RewriteCond %{HTTP} =on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]Replace the modified .htaccess file on the server
Settings completed
Alternative code if the code above does not work.
If you are switching to a secure protocol and you already have information on the site, then you will have to re-upload the images, or replace the URL to the images on the server.
The reason can be seen in your browser console logs.
Checking that SSL is working correctly
SSL protocol uses port 443, normal connection uses port 80
On the main page of the OS/IP server admin panel follow the link [PHPINFO]
If your server is configured correctly, you will see:
If there are differences and something does not work correctly, then ask all questions to your hosting provider.
Last updated