SSL (Secure Sockets Layer) is essential for every blogger’s website, as it ensures secure connections for visitors, enhancing the site’s trustworthiness. While many hosting companies charge extra for SSL, HostPerfy includes it for free with all their plans.
Follow the below-mentioned steps to install the SSL certificate via cPanel:
- Access your cPanel account and search for the “SSL/TLS Status” option, then open it.
- In the SSL/TLS window, you will see a list of all your domains.
- Select the domains for which you want to install SSL.
- At the top of the page, there is an option labeled “Run AutoSSL”.
- Click on “Run AutoSSL”, and within approximately 30 seconds, your SSL certificate will be successfully installed.
Redirecting HTTP to HTTPS
After installing an SSL certificate, it is essential to redirect HTTP traffic to HTTPS. This ensures that users accessing your site via HTTP will be automatically redirected to a secure HTTPS version. Follow these steps to set up the redirect:
- Open the File Manager in your cPanel.
- Locate and select the ‘.htaccess’ file, then click on the edit button. (If you do not see the ‘.htaccess’ file, enable the hidden files option from the settings menu located at the top-right corner.)
- Add this simple code there –
RewriteEngine OnRewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.yourdomain.com/$1 [R,L]
Replace ‘yourdomain.com’ with your actual site URL and save the file.
Congratulations! Your site is now successfully redirected to the HTTPS-secured URL.