www and non-www redirect to https

How the scan tests the other version of your address (www or no www) over plain http, and when a missing or half-way redirect is a warning.

What AuditX checks

This check only applies when the address you scanned is your bare domain (example.com) or exactly www plus that domain. For any other subdomain it is an info note that says the check does not apply. Otherwise the scan looks at the other version: www if you scanned the bare domain, the bare domain if you scanned www. It sends one plain http request for the home page of that other host (limited to 8 seconds, identified as AuditXBot) and does not follow the redirect. A failed request is retried once, unless the name does not exist. The check passes when the answer is a redirect (a 3xx status) whose Location starts with https://. It warns when the answer is a redirect to an address that is still http, and the same warning appears when the Location is a relative path such as "/", because the scan reads it as http. It also warns when the other host answers without any redirect, whatever the status code (a 200 page, a 403 or a 404 all count). It is an info note, which does not lower the score, when the other host has no DNS record at all, since using only one hostname is a fair setup. If the request did not complete, the result is an info note marked as not measured, and a security score that has any check not measured cannot go above 79. The scan does not follow later redirects, does not look at HSTS, and does not test the host you scanned; the https redirect of that host is a separate check.

Why it matters

web.dev explains that https protects the data between the visitor and the site, and that http pages can be read and changed on the way. A visitor who types the other version of your address and lands on plain http is exposed on that first request.

Google Search Central says to use permanent redirects when a page changes address, so that search engines and visitors end up on one version. A www and non-www pair that both answer without redirecting can split signals between two addresses.

How to fix it

  1. Choose one main address, with or without www, and use it everywhere.
  2. Set the other version to redirect with a permanent redirect (301) straight to the https address of the main one, in a single step.
  3. Do this in the web server, the hosting panel or the CDN, and keep the https address as an absolute URL that starts with https://.
  4. Open the other address in a private window with http:// in front and check that you land on the https main address.
server {
  listen 80;
  server_name www.example.com;
  return 301 https://example.com$request_uri;
}

Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.

Scan my site

Sources

Related checks

Last reviewed 2026-11-13.