Account

Guides

How to remove the Not secure label in Chrome

Chrome shows Not secure next to the address when a page loads over http, or over https with a problem: the SSL certificate is missing or invalid, the site does not send visitors to https, or a secure page still loads some resources over http. The site owner can fix all of this, mostly inside cPanel. The steps below are for shared hosting with cPanel, AutoSSL and LiteSpeed.

Check your site

>
  1. Check that the domain has a valid certificate

    In cPanel, open SSL/TLS Status. The domain and the www subdomain should each have a green lock and a current date. A grey lock or an expired certificate means the browser is right to show Not secure.

  2. Issue or renew the certificate with AutoSSL

    If there is no certificate, select the domain in SSL/TLS Status and click Run AutoSSL. AutoSSL issues a free certificate within a few minutes and then renews it on its own. The domain must point to this server (correct A record and NS), otherwise validation fails.

  3. Turn on the forced redirect to https

    A certificate alone does not make the browser open the https version. In cPanel, under Domains, enable Force HTTPS Redirect for the site. If that toggle is missing, add a rule to .htaccess: RewriteEngine On and RewriteCond %{HTTPS} off, followed by a RewriteRule to the https version. After that, every visitor who arrives over http ends up on https.

  4. Change the site address to https in the CMS

    In WordPress, open Settings > General and change WordPress Address and Site Address from http to https. In other CMSs, change the base URL (site URL / base href) the same way. If you skip this, the site keeps generating http links, and you either lose the lock or get an endless redirect.

  5. Fix mixed content (resources loaded over http)

    Even with a valid certificate, Chrome shows a warning if the page loads images, scripts or styles over http. Press F12: the Console tab lists the problem URLs. Replace http:// with https:// (or protocol-relative //) in the template and in the database. In WordPress, the easiest way to fix old links is a bulk search-replace in the database.

  6. Clear the caches and check in incognito

    Purge the LiteSpeed cache (LiteSpeed Cache > Purge All), the CDN cache if you use a CDN, and the browser cache. Then open the site in an incognito window so you do not see an old cached copy.

How to verify the result

Open the site in a Chrome incognito window. The address should show https with a lock, without the Not secure text or a yellow triangle, and the Console should have no mixed content messages. The free SpoofLens SSL checker quickly confirms that the certificate is valid, covers both the www and non-www names, and is not about to expire.

Tip: The certificate often covers only one form of the name, so Not secure stays on the www address only (or only on the address without www). Check that AutoSSL issued the certificate for both names and that .htaccess has a 301 redirect from one form to the other.

Related guides