Not Secure message shown after adding SSL Certificate

Dear Sir/Madam,

I have successfully installed the SSL Certificate to my website. But still when i open my website, it shows ‘Not secure’. I use ‘SSL Certificate’ section of infinityfree website to generate SSL certificate. Please help.

Hello there,

Could you please provide us your domain? So we can check it on our end as well.



my Domain Name is ‘’.

Hello there,

Yes I can confirm that you’ve already installed your SSL certificate but you still need to force all traffic in using the https:// secure connection protocol.

Insert this code/rule into your .htaccess file:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Please make sure that you do not mix this code into your existing codes/rules found in your .htaccess file, just put it at the most bottom and make sure to seperate it from the rest of the code that can be found in your .htaccess or else your site will generate an HTTP error 500.


can i edit my .htaccess file from my control panel=> Online File Manager. htaccess file scrrenshot

can i add the code you are given at line no 20

Yep you can.

And also make sure the .htaccess file you are editing is the htaccess file found in the /htdocs folder, make sure that you’re in the /htdocs folder to make changes with your .htaccess file.

1 Like

Thank you so much sir. The problem is solved. :slightly_smiling_face:

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.