How to fix connection is not secure Warnings on Your Website

You are using SSL on your site and site is loading with https but showing warning “connection is not secure”.

Why this warning is showing in your website? It occurs when your site is loaded over a secure HTTPS connection, but other resources on your site such as images, icons, videos, CSS or JavaScript are loaded over an insecure HTTP connection at the same time.

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.

<ifModule mod_headers.c>
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.

  • 0 Els usuaris han Trobat Això Útil
Ha estat útil la resposta?

Articles Relacionats

How to install Really Simple SSL Plugin ?

Login to your WP-Admin Dashboard Click on Plugins from Left Side Menu Click Add New From...

How to Force Redirect HTTP to HTTPS using htaccess?

By default site reach with http://, Once an SSL certificate is installed and the site can be...

How can I install Free SSL offered by d-Webhost?

d-Webhost client who have shared web hosting and reseller hosting can install SSL from cPanel....