How to build a sitemap and submit it to Search Console
Contents
A Sitemap is the most basic tool for telling a search engine which URLs matter. A well-built sitemap speeds discovery; a badly built one does harm.
Rules
- Include only canonical URLs; leave out redirecting, 404 and noindex URLs.
- Each file should hold at most 50,000 URLs and 50 MB. Larger sites should use a sitemap index.
- URLs must be absolute (starting with https).
- Update
lastmodonly when the page really changes. - Add the sitemap address to your robots.txt with a
Sitemap:line.
Submission steps
- Confirm the sitemap opens in a browser.
- Go to the Sitemaps section in Search Console.
- Enter the address and submit.
- Check that the status says "Success" and look at the number of discovered pages.
Common mistakes
- Listing blocked URLs in the sitemap: Blocked by robots.txt.
- Many URLs in the sitemap that never get indexed: Crawled - currently not indexed.
- Publishing two different sitemaps together.
Before submitting you can check your sitemap with the free Sitemap checker tool, or build one with Sitemap generator if you have no list. For platform-specific settings see WordPress, Shopify and the other platform guides.
Related pages
- Google indexing checklist: 15 items before you publishGuides
- How Google indexing works: crawling, rendering and indexingGuides
- How long does Google take to index a new page?Guides
- Is my page indexed on Google? 5 ways to checkGuides
- Google indexer: send your links to Google in bulkSolutions
- Free Google indexer: what is free and when do you need a paid one?Solutions