Site-wide configuration

How to redirect http to https

The http:// address does not redirect to https://. Both versions are reachable, so search engines see two copies of the site and some visitors stay on the insecure one.

What it is, and what it costs

You have a certificate and https works, but http still serves the site instead of redirecting. That leaves a full duplicate on the insecure protocol, splits signals between the two, and lets visitors land on the "Not Secure" version.

How to fix it

Add a permanent (301) redirect from http:// to https:// at the server or CDN level, and consider HSTS to make browsers default to https.

  • WordPress: Really Simple SSL adds the redirect; or add it in the server config.
  • Nginx / Apache / Cloudflare: a standard "always use https" rule handles it.

How to check your site

Load http://yoursite.com and watch: it should 301 to the https version, not stay on http.

Related: adding HTTPS in the first place.

Questions people ask

Do I need HSTS too?
It is a good next step: it tells browsers to always use https, closing the small window before the redirect fires. Add it once the redirect is solid.

Does your site have this?

Check your site to see whether http redirects to https.

See also

All SEO checks →