Mobile app version of vmapp.org
Login or Join
Sarah324

: Is incorrect to have the HTTPS version of the sitemaps.org URL in the xmlns sitemap schema? I have the schema with this: <sitemapindex xmlns="https://www.sitemaps.org/schemas/sitemap/0.9"> Is

@Sarah324

Posted in: #Https #Namespace #Xml #XmlSitemap

I have the schema with this:

<sitemapindex xmlns="https://www.sitemaps.org/schemas/sitemap/0.9">


Is it correct or should be:

<sitemapindex xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">


if all my web pages are on HTTPS?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Sarah324

2 Comments

Sorted by latest first Latest Oldest Best

 

@Si4351233

You can validate your sitemap on www.google.com/webmasters/tools. It will give an error when you use https to refer to the schema.

I have also seen other sitemap validators that refuse to validate the https version of the namespace, so using http might be the only correct option, even when your site only uses https.

10% popularity Vote Up Vote Down


 

@Shelley277

The value of the xmlns attribute is to uniquely identify a namespace (the "namespace URI"). It does not relate to whether your site is serving content over HTTP or HTTPS - for this it makes no difference.

The sitemaps.org site defines the protocol using www.sitemaps.org/schemas/sitemap/0.9 as the recognised namespace - so this should really be the string used.

(However, sitemaps.org does universally redirect everything to HTTPS, so maybe both would seem to be valid? But see @unor 's comment below.)

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme