1. Home
  2. Articles
  3. SEO
  4. XML Sitemaps
  5. XML Sitemap Last Modified Correct Format

XML Sitemap Last Modified Correct Format

Published:

Share

Description

During the review process of the sitemap and recent article modified date updates, I noted that I had missed adding the last modified date to my dynamic XML sitemap. I couldn't recall the correct format so thought I would post it for later use.

Article

While not required in an XML sitemap the lastmod element can inform search engines on the last date that the particular page was modified. Here is a typical example.

<lastmod>2018-12-26</lastmod>

The lastmod element in the XML sitemap will support any W3C date or data and time format. Typically either YYYY-MM-DD format or YYYY-MM-DDThh:mm: ssTZD is preferred.

Here is an example of a full entry for reference.

<url> <loc>https://www.bryan-myers.com/articles/website-notes/update/website-updates-planned-december-2018/</loc> <changefreq>monthly</changefreq> <priority>0.8</priority> <lastmod>2018-12-26</lastmod> </url>

Author

Tags

  1. Articles
  2. SEO
  3. XML Sitemaps

Related Articles