XML Sitemaps: How to Create and Submit Yours

XML Sitemaps: How to Create and Submit Yours

An XML sitemap is a roadmap that helps search engines discover all your important pages. While not required, sitemaps speed up indexing and ensure no pages get missed.

What is an XML Sitemap?

An XML sitemap is a file that lists all URLs on your website that you want search engines to index. It helps Google:

  • Discover new and updated pages faster
  • Understand your site structure
  • Prioritize crawling based on importance

Do You Need a Sitemap?

Sitemaps are especially useful if your site:

  • Has over 500 pages
  • Is new with few external links
  • Has pages not well linked internally
  • Uses rich media content
  • Publishes content frequently

How to Create a Sitemap

WordPress

Use Yoast SEO or Rank Math—they generate sitemaps automatically at /sitemap_index.xml

Shopify

Automatically generated at /sitemap.xml

Manual/Custom Sites

Use tools like Screaming Frog or XML-Sitemaps.com to generate, then upload to your server root.

Sitemap Best Practices

  • Include only indexable pages (no noindexed URLs)
  • Keep under 50,000 URLs per sitemap
  • Use sitemap index for larger sites
  • Include lastmod dates for important pages
  • Update automatically when content changes

How to Submit Your Sitemap

  1. Go to Google Search Console
  2. Select your property
  3. Navigate to Sitemaps section
  4. Enter your sitemap URL
  5. Click Submit

Sitemap XML Format

<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
  <url>
    <loc>https://example.com/page/</loc>
    <lastmod>2025-01-15</lastmod>
    <priority>0.8</priority>
  </url>
</urlset>

Common Sitemap Mistakes

  • Including noindexed or blocked pages
  • Outdated lastmod dates
  • Wrong URLs (HTTP vs HTTPS, www vs non-www)
  • Not updating after content changes

Related: Website Indexing Guide | Technical SEO Complete Guide

0 comments

Leave a comment

Please note, comments need to be approved before they are published.