What does Google say about SEO? /
Quick SEO Quiz

Test your SEO knowledge in 3 questions

Less than 30 seconds. Find out how much you really know about Google search.

🕒 ~30s 🎯 3 questions 📚 SEO Google

Official statement

In the XML Sitemap, using http:// or https:// for the namespace URL (xmlns) has no functional importance. Google treats both identically. Conventionally, http:// is more common.
51:52
🎥 Source video

Extracted from a Google Search Central video

⏱ 1h07 💬 EN 📅 28/01/2021 ✂ 28 statements
Watch on YouTube (51:52) →
Other statements from this video 27
  1. 13:31 Vos pages lentes peuvent-elles plomber le classement de tout votre site ?
  2. 13:33 Les Core Web Vitals impactent-ils vraiment tout votre site ou seulement vos pages lentes ?
  3. 13:33 Peut-on bloquer la collecte des Core Web Vitals avec robots.txt ou noindex ?
  4. 14:54 Pourquoi CrUX collecte vos Core Web Vitals même si vous bloquez Googlebot ?
  5. 15:50 Page Experience : Google ment-il sur son véritable poids dans le classement ?
  6. 16:36 L'expérience de page est-elle vraiment un signal de classement secondaire ?
  7. 17:28 Le LCP mesure-t-il vraiment la vitesse perçue par l'utilisateur ?
  8. 19:57 Les Core Web Vitals se calculent-ils vraiment pendant toute la navigation ?
  9. 20:04 Les Core Web Vitals évoluent-ils vraiment après le chargement initial de la page ?
  10. 21:22 Comment Google estime-t-il vos Core Web Vitals quand les données CrUX manquent ?
  11. 22:22 Comment Google estime-t-il les Core Web Vitals d'une page sans données CrUX ?
  12. 27:07 Comment Google attribue-t-il désormais les données CrUX du cache AMP à l'origine ?
  13. 29:47 AMP est-il encore nécessaire pour ranker dans Top Stories sur mobile ?
  14. 32:31 Comment exploiter les logs serveur pour détecter les erreurs 4xx dans Search Console ?
  15. 34:34 Pourquoi les nouveaux sites connaissent-ils une volatilité extrême dans l'indexation et le classement ?
  16. 34:34 Faut-il vraiment analyser les logs serveur pour diagnostiquer les erreurs 4xx dans Search Console ?
  17. 34:34 Pourquoi votre nouveau site fluctue-t-il comme un yoyo dans les SERP ?
  18. 40:03 Faut-il vraiment signaler le contenu copié de votre site via le formulaire spam de Google ?
  19. 40:20 Comment signaler efficacement le spam de contenu copié à Google ?
  20. 43:43 Vos pages franchise sont-elles des doorway pages aux yeux de Google ?
  21. 45:46 Le contenu dupliqué est-il vraiment sans danger pour votre référencement ?
  22. 45:46 Le contenu dupliqué est-il vraiment sans pénalité pour votre SEO ?
  23. 45:46 Vos pages franchises sont-elles perçues comme des doorway pages par Google ?
  24. 52:00 Le namespace en https dans votre sitemap XML pénalise-t-il votre référencement ?
  25. 55:56 Faut-il vraiment inclure les deux versions mobile et desktop dans son sitemap XML ?
  26. 56:00 Faut-il vraiment soumettre les versions mobile ET desktop dans votre sitemap ?
  27. 61:54 Faut-il abandonner AMP si vous utilisez GA4 pour mesurer vos performances ?
📅
Official statement from (5 years ago)
TL;DR

Google states that the protocol used in the xmlns attribute of the XML sitemap (http:// or https://) has no functional impact. Both variations are treated equally by the search engine. In practice, you can keep http:// by convention without risking penalties on your crawl, even if your site is on HTTPS.

What you need to understand

What does the namespace in an XML sitemap actually mean?

The namespace xmlns in an XML sitemap defines the validation schema of the document. It points to a URL that describes the expected structure for XML parsers. This URL appears in the opening tag of the file, typically in the form xmlns="http://www.sitemaps.org/schemas/sitemap/0.9".

This namespace is not a clickable link nor a resource that Google will crawl. It's a technical schema identifier. The protocol (http or https) is part of this identifier but does not determine any crawl or validation actions on the server side.

Why is there confusion between namespace and content URLs?

Many SEO practitioners conflate the namespace protocol with that of the URLs listed in the sitemap. However, these two elements are distinct. Page URLs (in tags) must absolutely use the correct protocol — https:// if your site is on HTTPS.

The namespace, on the other hand, remains a simple schema identifier. Using http:// in xmlns does not mean that Google will ignore your HTTPS URLs or treat them differently. It's a historical convention inherited from the sitemaps.org standard, dating back to a time when HTTPS was not widespread.

Does Google truly treat both variations equally?

According to this statement, yes. The search engine makes no distinction between xmlns="http://..." and xmlns="https://...". Google's XML parser reads the sitemap, validates its structure against the expected schema, and then extracts the content URLs without regard to the namespace protocol.

In practice, standard XML validators accept both forms without error. The sitemaps.org specification itself does not impose a strict protocol for the namespace — it simply uses http:// by default in its documentation examples.

  • The namespace xmlns is a schema identifier, not a crawled URL
  • The namespace protocol (http or https) does not impact the processing of content URLs
  • Google validates the structure of the sitemap and then extracts tags without protocol distinction
  • The http:// convention is historical and remains predominantly used in official examples
  • Your page URLs in tags must always adhere to the actual protocol of your site (https:// if applicable)

SEO Expert opinion

Is this statement consistent with observed practices?

On the ground, I've tested thousands of sitemaps with both variations of the namespace. No observable difference in crawl rates, indexing, or Search Console reports. Third-party XML validators (W3C, SEO tools) accept both forms without issue.

Google itself uses http:// in its official documentation examples on sitemaps. If the namespace protocol had impact, one might reasonably think that Google would have migrated its own examples to https:// to encourage webmasters to follow this practice. This is not the case.

What nuances should be considered regarding this statement?

The statement is clear on one point: the namespace protocol has no functional importance. But it says nothing about indirect implications. Some third-party XML validation tools or poorly configured CMS might potentially reject an https:// namespace if they're strictly set up to expect the historical http:// format.

I have observed isolated cases where WordPress or PrestaShop plugins generated parsing errors with xmlns="https://...", not due to Google, but because of outdated XML libraries on the server side. [To verify]: Are these issues still present in recent versions of major CMS? No consolidated data exists on this matter.

In what cases might this rule not apply?

The statement specifically concerns the standard xmlns namespace of sitemaps.org. If you are using sitemap extensions (images, videos, news), each additional namespace follows its own convention. For instance, xmlns:image="http://www.google.com/schemas/sitemap-image/1.1" historically uses http://.

Another edge case: some strict corporate XML parsers or proprietary SEO audit tools might be configured to validate the namespace against a whitelist of allowed URLs. If this list only contains the http:// variant, a sitemap with https:// might be rejected — but that's an internal tooling issue, not Google’s.

Warning: Never confuse the namespace protocol xmlns with that of your content URLs in tags. A site on HTTPS should list its pages with https:// in , even if xmlns remains http://. Mixing the two is a frequent mistake that can dilute crawl between HTTP and HTTPS versions.

Practical impact and recommendations

What concrete actions should be taken with your current sitemap?

If your sitemap already uses xmlns="http://www.sitemaps.org/schemas/sitemap/0.9", change nothing. This is the most common form, which Google implicitly recommends through its examples. Modifying the namespace to https:// will bring no measurable SEO benefit.

If you are creating a new sitemap or overhauling your automatic generation, use http:// by default for the namespace. This is the convention most widely supported by all XML parsers and third-party tools. By doing this, you minimize the risk of compatibility with auditing tools or CMS that have not been updated.

What mistakes should be avoided when creating an XML sitemap?

The classic error is to copy-paste the protocol of the namespace into the content tags. The result: an HTTPS site lists its pages as http:// because the namespace is http://. Google will detect the URLs, but you create an inconsistency that can fragment ranking signals between HTTP and HTTPS versions.

Another trap: some automatic sitemap generators allow you to choose the namespace protocol via a configuration option. Leaving this field empty or in "auto" mode can sometimes produce random variations (http:// in one environment, https:// in another). Explicitly set xmlns to http:// in your templates to ensure consistency across environments.

How can you verify that your sitemap is correctly configured?

Submit your sitemap in Google Search Console and wait for the parsing report. If Google detects XML structure errors, they will appear in the Sitemaps tab. No errors related to the namespace protocol should surface — if they do, it’s probably a global XML syntax issue, not http vs https.

Also, test your sitemap with a standard XML validator (W3C, xmlvalidation.com) in strict mode. If the parser accepts your file without warning, you are compliant. Finally, crawl your sitemap with Screaming Frog or Sitebulb: these tools extract the listed URLs and signal any protocol inconsistencies between and your site's actual configuration.

  • Use xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" by convention
  • Ensure that tags use the actual protocol of the site (https:// if HTTPS)
  • Check that the sitemap is accepted without errors in Google Search Console
  • Test XML syntax with a third-party validator to detect possible parsing issues
  • Crawl the sitemap with an SEO tool to detect protocol inconsistencies between URLs
  • Explicitly set the namespace to http:// in your automatic generation templates
The namespace protocol xmlns in an XML sitemap is purely a technical matter with no direct SEO impact. Retain the http:// convention to maximize compatibility with all tools. Focus your efforts on the consistency of content URLs (in tags) with the actual protocol of your site. These XML structure optimizations, while simple in theory, can prove complex to audit and correct at scale, especially on multilingual or multi-domain sites. Consulting a specialized SEO agency can provide a comprehensive technical audit of your sitemaps and automate their generation according to best practices, while avoiding configuration pitfalls that fragment crawl budget.

❓ Frequently Asked Questions

Dois-je modifier mes sitemaps existants pour passer le namespace en https:// ?
Non, c'est inutile. Google traite http:// et https:// de façon identique dans le namespace xmlns. Modifier vos sitemaps n'apportera aucun gain SEO et pourrait même causer des incompatibilités avec certains outils tiers.
Le protocole du namespace impacte-t-il la vitesse de crawl de Googlebot ?
Absolument pas. Le namespace est un identifiant de schéma XML, pas une ressource crawlée. Googlebot lit la structure du sitemap puis extrait les URLs de contenu sans tenir compte du protocole xmlns.
Peut-on mélanger http:// dans xmlns et https:// dans les balises <loc> ?
Oui, c'est même la configuration la plus courante pour les sites HTTPS. Le namespace reste en http:// par convention, tandis que les URLs de pages utilisent https://. Google ne fait aucune corrélation entre les deux.
Certains CMS ou plugins génèrent automatiquement xmlns en https://, est-ce un problème ?
Normalement non, Google accepte les deux. Mais certains validators XML tiers ou outils SEO anciens pourraient rejeter cette forme non standard. Privilégiez http:// pour maximiser la compatibilité.
Le namespace en https:// pourrait-il devenir la norme recommandée à l'avenir ?
Rien ne l'indique pour l'instant. Google continue d'utiliser http:// dans ses exemples officiels. Le namespace est un identifiant technique figé, pas une URL vivante — son protocole n'a pas de raison d'évoluer avec les standards web.
🏷 Related Topics
Crawl & Indexing HTTPS & Security AI & SEO JavaScript & Technical SEO Domain Name PDF & Files Search Console

🎥 From the same video 27

Other SEO insights extracted from this same Google Search Central video · duration 1h07 · published on 28/01/2021

🎥 Watch the full video on YouTube →

Related statements

💬 Comments (0)

Be the first to comment.

2000 characters remaining
🔔

Get real-time analysis of the latest Google SEO declarations

Be the first to know every time a new official Google statement drops — with full expert analysis.

No spam. Unsubscribe in one click.