After when you have got SSL installed by your hosting company, Just follow the steps below to ensure that SSL is working fine with our script:
01. Login to your hosting cpanel
02. Go to public_html or root of your website
03. Edit the file .htaccess and read the code
04. you need to put # with all the case 1 code and remove the # from case 4 lines that's all
Note: This configuration only work with linux based servers, For windows or other operating systems you need to contact your hosting provider.