GLOBAL BRIDGE LABS
← All posts/Website Development

One homepage address: www, non-www and redirects

One homepage address: pick www or non-www, force https, set the homepage canonical url and redirect the rest so links and rankings stay in one place.

By Hojitha Weerasinghe, Co-founder / DirectorPublished 3 min read
Homepage canonical url: key takeaways infographic by Global Bridge Labs
Key takeaways from this article. Share it with the link and credit Global Bridge Labs.
On this page

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

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

Hojitha Weerasinghe
Hojitha Weerasinghe
Co-founder / Director

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

Share this article

Reading is good.
Fixing is better.

30 minutes with our team and you'll leave knowing which of the three problems to fix first.

Get a Free Quote →
Keep reading