www and non-www both work

HighHigh priority, in URLs, checked once for the whole site

Short answer

www and non-www both work means: the whole site exists twice, at example.com and www.example.com. To fix it: 301-redirect one version to the other for every URL.

By the SmooxSEO team. Updated on 16 November 2026.

What it means and why it matters

The whole site exists twice, at example.com and www.example.com.

How to fix it

301-redirect one version to the other for every URL.

Common causes

  • The server answers on both example.com and www.example.com with no redirect between them.
  • The redirect exists for http but not for https (or the reverse).
  • A new hosting or CDN setup that serves both versions by default.

How to spot it

Type both versions in your browser (with and without www). If both load without the address changing, both work. SmooxSEO requests both and checks that one redirects to the other.

Example

Problem
https://example.com/      ->  200
https://www.example.com/  ->  200
Fixed
https://example.com/      ->  301  ->  https://www.example.com/
https://www.example.com/  ->  200

Mistakes to avoid

  • Relying only on canonical tags: they're a hint, a 301 redirect is the clear signal.
  • Mixing both versions in your internal links, sitemap and canonical tags: pick one and use it everywhere.

How to fix it on your platform

WordPress
Set the same version (with or without www) in Settings > General. Most hosts also offer a "force www" or "force non-www" setting.
Cloudflare
Add a redirect rule that sends one version to the other with a 301, keeping the path and query string.
Nginx
Add a server block for the version you don't use that returns 301 to the other one with $request_uri.

Questions people ask

Is www or non-www better for SEO?

Neither. What matters is choosing one, redirecting the other to it, and using it consistently in links, the sitemap and canonical tags.

How serious is it?

A page can't be found, indexed or trusted, or search engines can't read part of the site. Fix it soon: it costs traffic.

About urls checks

How your page addresses are written: length, characters, parameters and duplicates. Clean, stable URLs are easier for search engines to crawl and for people to share.

Find this problem on your site

SmooxSEO checks your whole site for this problem and 311 others, lists the details, and tells you what to fix first.

Related urls checks

All urls checksAll 312 checks