Home / Security / Audit your www vs non-www redirect and canonicalize properly
Transport Security · Security Ring

Audit your www vs non-www redirect and canonicalize properly

15 min Impact: medium Effort: medium ✓ Manual completion

If both www.yoursite.com and yoursite.com load as separate, live sites instead of one redirecting to the other, search engines see duplicate content, splitting ranking signals across two URLs instead of concentrating them on one canonical version.

This is a foundational technical fix with a direct SEO impact, not just a cosmetic detail — it affects how your ranking authority concentrates.

The full picture

A thorough audit of your www versus non-www redirect configuration extends the basic canonicalization check discussed elsewhere into genuine, comprehensive verification — confirming this redirect works correctly and consistently across every possible entry point, not simply spot-checking the homepage alone.

This comprehensive verification matters because redirect configuration issues can sometimes affect specific page types or URL patterns differently than others, meaning a redirect that appears to work correctly when tested on your homepage might behave inconsistently on other page types, particularly on sites with more complex URL structures or multiple content management systems handling different site sections.

Genuine auditing also includes verifying this redirect correctly preserves the specific destination path — a properly configured redirect should send a visitor requesting www.yoursite.com/specific-page to yoursite.com/specific-page, maintaining their intended destination, rather than a poorly configured redirect that sends every request generically to just the homepage regardless of the originally requested path.

This thorough verification closes any gaps the more basic canonicalization check might miss on complex or larger sites, ensuring the SEO authority consolidation this redirect is meant to provide genuinely applies comprehensively across your entire site rather than only the specific pages initially tested during a more cursory check.

How to do it

  1. 1
    Decide your one canonical version
    Either www or non-www — there is no inherent SEO advantage to either, consistency is what matters.
  2. 2
    Set up a permanent 301 redirect
    From the non-canonical version to your chosen one, at the DNS, host, or CDN level.
  3. 3
    Update canonical tags and your sitemap to match
    Every reference to your site should consistently point to the same version.
  4. 4
    Test both variants after the change
    Visit the non-canonical version directly and confirm it redirects cleanly.

Common mistakes

How you will know it is done

The non-canonical variant correctly 301-redirects to your single canonical domain.

Track this in your hive

The Security Ring turns this into a real, permanent mission — mark it complete once you have genuinely done it.

Open this mission in H.I.V.E. →