Video Tutorial
Explaination
If you have purchase SSL certificate for your website or want to use our SSL certificate for free.
You have to login into your website via ftp connection using software like filezilla, winscp.
Create a file name .htaccess (starting with dot and end on ss) and just paste the following code in the file and click save.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond !{HTTPS} off
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
</IfModule>