Skip to content
Get a free quote
SEO

How to Create and Submit an XML Sitemap to Google

A sitemap is like a guest list you hand to Google: “These are the pages that matter.” It won’t force anything into the index, but it helps Google find and prioritize your content.

Short answer: to submit a sitemap, generate an XML sitemap (WordPress SEO plugins do this automatically), make sure it lists only important, indexable URLs, then open Google Search Console → Sitemaps, enter the sitemap URL and submit. Also reference it in robots.txt and check the report for errors.

Step by step

  1. Find your sitemap: with All in One SEO or Yoast it’s usually /sitemap.xml or /sitemap_index.xml.
  2. Check it in a browser: does it list your pages and posts?
  3. Open Search Console → Indexing → Sitemaps.
  4. Enter the sitemap URL and click Submit.
  5. Add to robots.txt: Sitemap: https://www.example.com/sitemap.xml.

What should be in a sitemap

  • Indexable, canonical URLs that return 200
  • Pages, posts, products and categories that matter

What should not

  • Redirects, 404s and noindexed pages
  • Thank-you pages and internal search results
  • Duplicate or parameter URLs

Common errors

Error Fix
Couldn’t fetch Check URL, robots.txt, firewall and server response
Has errors Validate the XML format
URLs not indexed Normal for some; improve important pages

Google no longer uses the old sitemap “ping” endpoint, so submit through Search Console and robots.txt.

Try this today

Open your sitemap and click five random URLs. If any redirect or 404, your sitemap needs cleaning.

Next: Search Console guide and crawled – not indexed fix.

Technical SEO by HezalNova

See SEO services or get in touch.

Frequently asked questions

Do small websites need a sitemap?

It helps, especially for new sites with few external links.

How often should I resubmit?

Not often — Google re-reads sitemaps automatically. Resubmit after big changes.

Does a sitemap improve rankings?

Not directly; it helps discovery and indexing.

Let’s build something extraordinary — together.

Tell us what you need. We’ll reply within one working day with ideas and a clear price.