Home›Domains›Guide

How to Fix www vs Non-www Domain Problems

Ensure both example.com and www.example.com reach the same website without duplicates.

Quick answer

Ensure both example.com and www.example.com reach the same website without duplicates.

Step-by-step instructions

  1. Step 01

    Identify the preferred public domain name for your website.

  2. Step 02

    Add both the root domain and www alias to your hosting provider if the platform requires it.

  3. Step 03

    Configure DNS separately for apex/root and www according to the host's documented instructions.

  4. Step 04

    Enable an automatic redirect from the non-preferred hostname to the preferred hostname, if supported.

  5. Step 05

    Set canonical URLs and internal navigation links consistently.

  6. Step 06

    Test both variants with http and https; ensure the redirects lead to the correct address without loops.

  7. Step 07

    After the move, update the preferred domain in Search Console records and sitemap where appropriate.

Before you finish: important checks

  • A www CNAME without a configured apex root will not automatically fix every provider's DNS.

Common problems and fixes

  • www 404 but apex works? Check both DNS and the provider's domain aliases.

Frequently asked questions

Does Google require www?

No; consistency and correct redirects matter more.

Keep this in mind

WordPress, hosting and AI interfaces change. Check the service's current documentation before changing billing, domain DNS, security or important site settings. Rayhan Studio publishes educational help, not guaranteed results.