How to fix SSL certificate errors and Not secure warnings on your website

A Not secure warning or certificate error usually means one of four things: the certificate has expired or is missing, the page loads some content over plain http, the domain name does not match the certificate, or the visitor’s device clock is wrong. Identify which one you have, then fix it. The steps below go in order of how common each cause is.

First, read the error

Browsers describe the problem. Click the warning or padlock area for details. Common messages include certificate expired, name mismatch, and connection not private. The message tells you where to look.

What you see Likely cause
Certificate expired SSL was not renewed
Name does not match Certificate issued for a different domain, or www vs non-www
Not secure, but no full-page error Mixed content or no HTTPS redirect
Error only on one device Wrong date and time on that device
Too many redirects Redirect loop between settings

1. Install or renew the certificate

If the certificate is missing or expired, install or renew it through your hosting control panel. Free certificates usually renew automatically, but renewal can fail if the domain no longer points to the server. All hosting plans from MrHost include free SSL, and our support team can help if renewal stalls. See the hosting page for details.

2. Check that the domain points to the right server

Certificates are issued after the server verifies your domain. If your DNS records point somewhere else, issuing or renewing can fail. Check your A record and nameservers in the domain settings. Changes can take some time to spread.

3. Cover both www and non-www

The certificate must include both versions of your address. Then choose one as the main version and redirect the other to it.

4. Redirect http to https

Make sure visitors who type http are sent to https. In WordPress, set both the WordPress Address and Site Address to https in Settings, General. A plugin or a server rule can handle the redirect.

5. Fix mixed content

Mixed content means a secure page still loads images, scripts or styles from http addresses. The padlock then disappears or shows a warning.

  1. Open the page in your browser and look in the developer console for mixed content messages.
  2. Update the old http links in your content. On WordPress, a search-and-replace plugin can change http://yourdomain.com to https://yourdomain.com in the database. Back up first.
  3. Check theme and plugin settings for hard-coded http addresses.
  4. Clear your caching plugin and browser cache.

6. Resolve redirect loops

If you use Cloudflare or another proxy, the SSL mode must match your server setup. A mismatch is a common cause of endless redirects. With Cloudflare, use Full or Full (strict) once a valid certificate is installed on your server. See our Cloudflare setup guide.

7. Check the device

If only one phone or computer shows the error, check its date, time and time zone. A wrong clock makes valid certificates look invalid.

Why it matters

Visitors often leave when they see a warning, and HTTPS is a lightweight ranking signal for Google. It is also a basic part of website security. After fixing it, recheck your pages with the SEO audit checklist.

Frequently asked questions

Do I have to pay for SSL?

Not necessarily. Many hosts provide free certificates that renew automatically.

My certificate is valid but the padlock is missing. Why?

This is almost always mixed content, meaning some elements still load over http.

How long does it take to install?

Often minutes, though DNS changes can add delay.

Will switching to HTTPS hurt my SEO?

Not if you redirect correctly. Update your Search Console property and sitemap to the https version.

Need hosting, a domain or business email?

Tell us what you are building and the MrHost team will point you to the right plan.

Talk to MrHost

Leave a Reply

Your email address will not be published. Required fields are marked *