You are using SSL on your site and site is loading with https but showing warning “connection is not secure”.
This is called mixed content because both HTTP and HTTPS resources are being used to display the same page at the same time. So, how can we fix this issue? We can fix the issue by adding following code in .htaccess file.
- Login to cPanel
- Then go to File Manager from cPanel.
- Now go to your document root and open .htaccess file by right click. Then click on the “Edit”
- Now put the following code in .htaccess file and save it.
Header always set Content-Security-Policy “upgrade-insecure-requests;” </IfModule>
Now let’s go back and access your website. Notice how it redirects us to the secure version, and we see a secure lock symbol in the location bar.