Both WWW and non-WWW URLs are valid choices; the key is to choose one primary version and keep your website settings, internal links, and sitemap consistent. For an existing website, first confirm which version it currently uses rather than choosing a different one in the sitemap generator. The available information does not support the claim that “WWW has been deprecated,” nor does it establish that generators generally prefer WWW. In one case discussed publicly, the problem was actually a mismatch between the URL version entered and the existing server configuration.
Do not treat WWW as an SEO advantage when choosing a URL version
Semrush’s overview states that either format works from an SEO perspective; what matters is consistency across the site. Another public discussion notes that “there is no particular need to use WWW” does not mean “WWW has been deprecated.” Similarly, a shorter or more modern-looking URL does not mean that non-WWW URLs are more likely to rank well.
If the website is already running, check its existing primary URL before changing the prefix. If both versions are accessible, choose a primary version and redirect the other one to it, rather than leaving the same content available indefinitely under two sets of URLs.
Check the website settings before deciding what to enter in the generator
One person who raised this question later discovered that the site’s canonical version had already been configured on the server. Entering the other version in the sitemap generator produced unexpected results. This is only one case, so it cannot tell us how all generators behave. It does, however, illustrate why the URL version depends not just on what you enter in the generator, but also on the website’s existing settings.
- Open both the WWW and non-WWW URLs to confirm which version each ultimately reaches and whether the redirects work as expected.
- Check whether internal links mix the two formats, and update them to use the chosen version.
- Check the canonical URLs specified by canonical tags. If the website uses HTTPS, its canonical URLs should also use HTTPS. Be consistent about whether paths end with a slash.
The sitemap should match the website, not use a separate set of URLs
For example, if the website uses https://example.com/ as its primary version, its sitemap and internal links should use non-WWW URLs. If it uses https://www.example.com/, they should consistently use WWW. URLs on the other version should use a 301 redirect to the chosen version, avoiding multiple redirects before reaching the destination URL.
Respondents in a public discussion argued that a good generator should detect the website’s URL format and generate the sitemap accordingly. It could convert links that use a different format or flag an error, though which approach is better remains open to discussion. So it is not enough to look at which URL the input field accepts; you also need to check whether the generated URL list matches the website’s actual configuration. The key is to use one URL version consistently across the website, then align the sitemap with it.
WWW and non-WWW URLs: perspectives from across the web
Can an existing website switch to non-WWW just to shorten its URLs?
You can consider it, but there is no need to switch solely to shorten the URL. In public discussions, some people prefer non-WWW because it removes three letters and a dot. Other respondents caution that switching versions after a website is live and may already be indexed could affect rankings during reindexing. For an existing website, check the current URL version and links to it before deciding whether a change is worthwhile.
Does the Search Console property type affect how you view data for different URL versions?
Yes. The property type determines which data you can view. A Domain property combines data across different protocols and URL versions, while a URL-prefix property records data separately for each full prefix. When checking data for an existing website, first confirm which property type you are viewing. If you use a URL-prefix property, check that its protocol and use or omission of WWW match the URL version you want to examine.
Which URLs should you check if the old domain still appears after a website migration?
Consider canonical URL selection as part of the diagnosis, and check whether external links still point to the WWW or non-WWW version of the old domain. Relevant reporting indicates that these links may prompt Google to select the old domain as canonical. However, this is only one possible clue when investigating migration issues; old links alone are not enough to establish that they caused the problem.
References
- Google Search Console 教學:使用與設定指南www.yesharris.com — Discusses: Does the Search Console property type affect how you view data for different URL versions?
- Canonical URLs: SEO Best Practices, Common Issues, and How to Fix Themwww.semrush.com · 2020-05-15T17:19:00Z — Source used in the article above.
- Your CMS Is Still Failing SEO Basics – 11 Fixes To Demandwww.searchenginejournal.com · 2026-11-04T15:00:12+00:00 — Source used in the article above.
- www in Sitemap URL'swebmasters.stackexchange.com — Source used in the article above.
- www in Sitemap URL'swebmasters.stackexchange.com — Source used in the article above.
- Google Says Why Site Migrations Can Exceed 4 Monthswww.searchenginejournal.com · 2026-10-13T11:23:58+00:00 — Discusses: Which URLs should you check if the old domain still appears after a website migration?
- SEO preference: does a site with WWW rank better than without WWW?webmasters.stackexchange.com — Discusses: Can an existing website switch to non-WWW just to shorten its URLs?
- The Ultimate Guide to WordPress SEOwww.semrush.com · 2022-11-18T14:32:00Z — Source used in the article above.
- WWW vs. non-WWW: Which is Better for SEO?www.warriorforum.com — Discusses: Can an existing website switch to non-WWW just to shorten its URLs?
- WWW vs. non-WWW: Which is Better for SEO?www.warriorforum.com — Source used in the article above.
- www in Sitemap URL'swebmasters.stackexchange.com — Source used in the article above.
