A short tutorial that explains on how to install the SSL certificate using cpanel.
Download your SSL certificate and support files by clicking on the
download link from your registered email or from your HioxIndia client
account.
Step 1: Login to cPanel
Step 2: Select SSL/TLS → Manage SSL sites to upload SSL certificate and support files.
Step 3: Select the domain name for which you have purchased the SSL and paste the domain CRT file in the CRT field.
Step 4: Upload the Private key in the KEY field.
Step 5: Upload CA Bundle files in the Certificate Authority Bundle field.
Step 6: Click Install Certificate. Once the SSL installation is over you will be notified with the alert of SSL Installation Successfully Updated.
Step 7: Create the .htaccess file in your website folder and add the below code to redirect a website from HTTP to https
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
or
RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://domain.com/$1 [R=301,L]