On this page
- 01Key takeaways
- 02What is the homepage canonical URL?
- 03Should you use www or non-www?
- 04How do you set the redirects?
- 05What should the canonical tag say?
- 06How do you test your setup?
- 07When does this matter most?
- 08What does this look like in practice?
- 09Homepage canonical URL checklist
- 10Next step
- 11Sources and further reading
- 12Frequently asked questions
Key takeaways
Your homepage canonical URL is the one address you want search engines and visitors to use. Pick www or non-www, force https, and redirect every other version to it with a 301. If several versions work, your links and signals can split between them, and analytics and sharing data get harder to read.
- Choose one version: www or non-www.
- Force https on every version.
- Use 301 redirects from the rest.
- Point the canonical tag to the same address.
Want your homepage address checked? Message us on WhatsApp.
Chat on WhatsApp →What is the homepage canonical URL?
It is the single preferred web address for your homepage. Up to four variants can exist: http and https, each with or without www, and index.html or index.php may add others. Without a clear choice, search engines must pick one for you, and they may not pick the one you want.
Should you use www or non-www?
Either is fine, and Google treats them equally. Pick one and stay with it. If your site already has a version that ranks, keep it. Changing an established homepage address without need creates work and risk, while offering no benefit for ranking.
How do you set the redirects?
Set them with your hosting provider, your CDN or your site settings. All versions should go straight to your chosen address with a single 301 redirect. Avoid chains. Hosted builders usually handle this when you connect your domain, and you can choose a primary domain in their settings.
What should the canonical tag say?
It should point to your preferred homepage URL exactly, including https and the right www setting. Most platforms add this automatically. Check for mismatches, such as a tag still pointing to a staging address after launch. Google treats canonical tags as a strong hint, and consistency helps it follow them.
How do you test your setup?
Type each variant into a browser and watch where it lands. A free redirect checker shows the steps. In Search Console, inspect the homepage URL and see which canonical Google has selected. Your sitemap, internal links and social profiles should all use your chosen address too.
When does this matter most?
It matters most when launching a new site, moving hosts or switching to https, as those are the moments when redirects get lost. Check it during the launch. For a small site that has been stable for years, a single check is probably enough.
What does this look like in practice?
A pattern worth testing after a hosting move: the https www version works, but the plain http version shows a certificate error or an old page. Few owners ever type that version, yet old links and printed materials may still lead there, so a few minutes checking all four is worthwhile.
Homepage canonical URL checklist
- Choose your preferred address.
- Type all four variants to test them.
- Redirect each one with a single 301.
- Check the canonical tag.
- Update your sitemap and internal links.
- Update your Google Business Profile.
Next step
Type the http and non-www versions of your domain into a browser today. Each should land on your one chosen address.
Message us on WhatsApp for a quick technical check, with no pitch.
Chat on WhatsApp →Sources and further reading
- URL structure best practices for Google Search · Google Search Central
- Site moves with URL changes · Google Search Central
- HTTPS as a ranking signal · Google Search Central Blog
Frequently asked questions
Is www or non-www better for SEO?
Neither has a ranking advantage. What matters is that you choose one, redirect the other and use your choice consistently. If your site already ranks, keep your existing version, so that you avoid an unnecessary change.
What is a canonical URL?
It is the preferred address for a page when several addresses show the same content. You declare it using a rel=canonical tag and support it with redirects. It helps search engines to combine signals for one version.
Do I need a 301 redirect from http to https?
Yes. Every http version should redirect to your https address, so that visitors get a secure page and links count towards one URL. Most hosts and builders can do this automatically once a certificate is active.
Written by

Global Bridge Labs (GBL) is a UK–Sri Lanka partner for social media, websites and BPO. Everything here comes from client delivery, not theory.




