Skip to content

Ready

Enter a domain on the left and run the test. Results stream in here.

Four front doors, one address

Most sites can be typed in four ways: http://example.com, http://www.example.com, https://example.com and https://www.example.com. If more than one of those loads the site with a 200 response instead of redirecting, the same pages exist at several addresses. Search engines then have to pick one version to show, and links people give you can land on different versions. This audit requests all four variants of the URL you enter, follows each redirect hop by hop (up to six), and shows where every one of them ends up.

For a URL with a path, such as /pricing, it also tests the trailing-slash twin (/pricing/), because a site that serves both forms has the same duplicate problem one level down. The verdict at the top tells you whether everything consolidates to a single final URL, and the detail rows show the status code of each hop.

What a passing result looks like

One variant, your chosen canonical host on https, answers 200. The other three each answer with a 301 or 308 that lands on that same address in a single hop. The trailing-slash twin, if tested, either redirects to your preferred form or returns 404. Nothing redirects to a different final address, nothing loops, and nothing fails to connect except possibly a www host you never set up in DNS, which the audit reports separately.

Whether you choose www or non-www makes no difference to rankings. What matters is that you pick one and use it everywhere: in redirects, canonical tags, your XML sitemap and internal links.

The flags in the report, explained

More than one variant returns 200

Duplicate copies of your site are live. Add redirects so only one host answers with content. Canonical tags can reduce the damage, but a server redirect is the stronger and more reliable fix for whole hosts.

HTTP does not upgrade to HTTPS

An http variant ends on an http URL. Visitors get a "not secure" warning and the insecure copy can be indexed. Redirect every http request to https. Once that works, consider HSTS so browsers stop trying http at all; our HSTS Checker tests the header.

Multi-hop chains

For example http://www to https://www to https://example.com. Each hop adds a round trip for visitors and an extra step for crawlers. Google follows a handful of hops, but one direct redirect is cleaner. Rewrite the rules so each variant goes straight to the final address.

Temporary redirects (302 or 307)

A temporary redirect says the move might be undone, so search engines may keep the old URL as canonical. For permanent host consolidation, use 301 or 308. Our redirects guide explains the difference between the four codes.

Different final URLs

Some variants land on www and others on non-www, or the trailing-slash form differs. This usually means two rules (one at the CDN, one at the server) disagree. Decide which layer owns the redirect and remove the other.

One-hop redirect rules for Nginx and Apache

Replace example.com with your domain. These send every non-canonical variant straight to https and the bare domain, keeping the path and query string.

# Nginx: send all http traffic, and https://www, to https://example.com in ONE hop
server {
    listen 80;
    server_name example.com www.example.com;
    return 301 https://example.com$request_uri;
}
server {
    listen 443 ssl;
    server_name www.example.com;
    # ssl_certificate lines here (the certificate must cover www too)
    return 301 https://example.com$request_uri;
}
# Apache (.htaccess): force https and non-www in one redirect
RewriteEngine On
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\. [NC]
RewriteRule ^ https://example.com%{REQUEST_URI} [L,R=301]

If you prefer www, swap the host names. Test the rules on a staging copy first; a typo in a redirect rule can make the whole site unreachable. For path-level redirects rather than host-level ones, the Redirect Rule Generator writes them for several servers.

One-hop host rules on WordPress, Shopify and CDNs

WordPress

Set both the WordPress Address and Site Address in Settings, General to your chosen https host. WordPress then redirects the other host on most setups. HTTP to HTTPS is often handled by your host's control panel or a rule like the Apache one above; avoid stacking a plugin redirect on top of a server one, which creates two hops.

Shopify

In Settings, Domains, choose your primary domain and make sure the other domains are set to redirect to it. Shopify issues SSL certificates and forces HTTPS automatically.

Cloudflare

Turn on "Always Use HTTPS" and add a single Redirect Rule from the www host to the bare domain (or the reverse) with status 301, preserving the path and query string. If your origin server also redirects, check that the two do not create a chain or a loop.

How this audit differs from a canonical tag check

This audit tests what the server does when someone requests each variant: it is about redirects. A canonical tag is a line in the HTML that suggests which URL to index, and search engines treat it as a hint. You want both: hosts consolidated by redirects here, then a self-referencing canonical on the final URL. Check that second part with the Canonical Tag Checker, and read our canonical tags guide for how the two work together.

After the redirects are in place

Re-run the audit and confirm a single final URL with one hop from each variant. Then make sure your sitemap, canonical tags and internal links all use that exact host and protocol, because links to a redirecting variant still cost a hop on every crawl. In Google Search Console, a Domain property covers all four variants at once and shows which version Google indexes. Spot-check a few deep URLs too: rules sometimes handle the homepage correctly but drop the path on inner pages.

How it works

  1. Enter Your Domain

    Paste any URL on your domain. We derive the http, https, www, and non-www variants automatically.

  2. Probe Each Variant

    We request each variant without following redirects, recording the status code and Location header so we can see exactly where each one points.

  3. Map the Canonical

    You get a matrix showing which variants redirect, where they land, and whether they all consolidate to one single canonical URL.

Frequently asked

What is domain canonicalization?

›

Making sure every way of typing your site's address (http or https, www or not) ends up at one single address through redirects. Without it, search engines can find the same pages on several hosts and have to choose which version to show.

Which variants does this audit test?

›

It tests http://non-www, http://www, https://non-www and https://www versions of the URL you enter. For a URL with a path, it also tests the trailing-slash twin (/page versus /page/). It follows each redirect hop by hop, up to six hops, and reports where every variant ends up.

Why does www vs non-www matter for SEO?

›

If both https://www.example.com and https://example.com return 200 without redirecting, the site exists twice. Links people give you can land on either copy and Google has to pick one. Choosing one host and 301-redirecting the other keeps everything on a single address. Which one you choose makes no ranking difference.

Should http always redirect to https?

›

Yes. Every http request should get a permanent redirect to the https version of the same path, ideally straight to your chosen host in one hop. Serving content on http creates insecure duplicates and browser warnings. This audit flags any http variant that does not end on https.

How many redirect hops should there be?

›

One. A request to http://www.example.com should reach your final https address directly. Google follows several hops and redirects do not lose ranking value, but each extra hop slows visitors and adds crawl work, and long chains are easy to break. The audit lists variants that take more than one hop.

Is a 302 redirect OK for www to non-www?

›

Use a 301 or 308. A 302 or 307 says the move is temporary, so search engines may keep treating the original host as canonical. The audit lists any variant whose path includes a temporary redirect.

What's the difference between this and a canonical tag checker?

›

This audit tests server behaviour: what each host and protocol variant returns when requested. A canonical tag checker reads the rel='canonical' line in a page's HTML, which search engines treat as a hint. You want both: variants consolidated by redirects, and a self-referencing canonical on the final URL.

How do I tell Google which version I prefer now that the preferred domain setting is gone?

›

Search Console's preferred domain setting was removed in 2019. Google now works it out from your signals, so redirect every other variant to your chosen one, use that exact host in canonical tags, your sitemap and internal links. A Domain property in Search Console covers all variants and shows which one is indexed.

Related tools

More Technical SEO tools

See all Technical SEO tools · All free SEO tools

Related guides

↳ full site audit190+ checks · AI fix instructions · yearly plans