Sitewalk / Guides / Issue guides / www, non-www, http and https

www, non-www, http and https: send them all to one

Every site can be reached in four ways: http://example.com, https://example.com, http://www.example.com and https://www.example.com. Only one should answer with a page. The other three should send visitors to it with a permanent redirect.

If more than one answers, search engines may treat each as a separate copy of your site. Links, ranking signals and crawl time are split, duplicates can appear in results, and visitors can land on an unsecured version.

Check in about 2 minutes

Run this for each of the four versions:

curl -sI http://example.com
curl -sI https://example.com
curl -sI http://www.example.com
curl -sI https://www.example.com

Exactly one should return 200. The other three should return 301 or 308, with a Location line that names that one address.

Fix it

  1. Choose one preferred address. Always https. With or without www is your choice. Pick one and keep it.
  2. Redirect the other three with a permanent 301 or 308, set at the server or the CDN. Do not use a temporary 302 or 307.
  3. Use the preferred address everywhere: in canonical tags, in the sitemap and in internal links.

Google treats a permanent redirect as a signal that the target should be the canonical address, and shows the target in search results. A temporary redirect shows the source page.

Check that it worked

Run the four curl checks again. Then run an audit.

What Sitewalk found on real sites

Of 54 audited sites (latest audit, since this check went live on 4 Nov 2026), 8 (15%) answered on more than one version of the address. Early users, a first look, not a survey.

Check your whole site

Sitewalk tests all four versions of your address, with 200+ other technical checks. In ChatGPT, say:

Audit yoursite.com for technical SEO problems

Get started

Checked on 16 Nov 2026.

More guides

All issue guides ยท All guides