Hypertext Transfer Protocol Secure (HTTPS) is used to secure communication on the internet. It is represented by a green padlock to the left of the web address in the browser search field. The presence of the padlock indicates that your connection to a website is secure and whatever you send through that website is in safe hands.
When you develop a website, sometimes that green padlock does not appear in the browser even though you have already forced the use of HTTPS in a .htaccess file. The tutorial will teach you how to enable HTTPS through the cPanel.
1. Log in to the cPanel of your web host.
2. Scroll down to the Domains section and click on Domains.
3. The Domains page will appear containing a table of your domains. One of the columns is called Force HTTPS Redirect. Here you can toggle on and off Force HTTPS Redirect for any listed domain in the first column of the table.
4. Above the table is a checkbox with the ENABLE FORCE HTTPS REDIRECT button right next to it. If you tick the checkbox and click on the button, it will turn on HTTPS for all the domains listed in the first column of the table.