SEO Questions & Answers Logo
SEO Questions & Answers Part of the Q&A Network
Q&A Logo

Can you show a modern sitemap.xml using only loc and lastmod (ISO 8601) for two URLs?

Asked on Sep 14, 2025

Answer

A sitemap.xml file helps search engines understand the structure of your website and find new or updated content efficiently. Below is a simple example of a modern sitemap.xml using only the "loc" and "lastmod" tags for two URLs.

    
    
      
        https://www.example.com/page1
        2023-10-01
      
      
        https://www.example.com/page2
        2023-10-02
      
    
    
Additional Comment:
  • The "loc" tag specifies the URL of the page.
  • The "lastmod" tag indicates the last modification date of the page in ISO 8601 format (YYYY-MM-DD).
  • Ensure the sitemap is accessible to search engines by placing it in the root directory or specifying its location in the robots.txt file.
  • Regularly update the sitemap to reflect any changes in your site's content.
✅ Answered with SEO best practices.

← Back to All Questions
The Q&A Network