Sitemap
A sitemap is a file in XML format that contains a list of all the important URLs on your website. It serves as a navigation aid for search engines — it tells Google and other crawlers which pages your website has, when they were last updated, and how important they are. Thanks to a sitemap, search engines crawl and index content more efficiently, especially on larger websites.
- /01
How a sitemap works
A sitemap is usually available at yourwebsite.com/sitemap.xml. It contains a list of URLs along with optional information about the last modified date (lastmod), change frequency (changefreq), and page priority (priority). Search engines download this map regularly and use it as a complement to ordinary crawling via links. In Next.js, we generate the sitemap dynamically via app/sitemap.ts, so it updates automatically when new content is added.
- /02
When a sitemap is especially important
A sitemap is critical for new websites that don't yet have many backlinks — without it, it could take Google weeks to discover all pages. It's equally important for e-shops with hundreds of products, sites with deep page nesting, or sites with dynamic content (blog, catalogue). For small sites with good internal structure, a sitemap isn't essential, but it certainly doesn't hurt — think of it as insurance.
- /03
How to submit a sitemap to Google
The most reliable way is to upload the sitemap directly into Google Search Console under „Sitemaps“. Just enter the URL of your sitemap and Google will start downloading it regularly. The second option is to reference the sitemap path in the robots.txt file. After submission, Search Console shows how many pages were successfully loaded and whether there are any errors — for example invalid URLs or pages blocked by robots.txt.
- /04
Common sitemap mistakes
The most common mistake is including pages in the sitemap that you don't want indexed — login pages, duplicate URLs with parameters, or pages with a noindex tag. Another mistake is an outdated sitemap that doesn't reflect the current state of the site. At Appitect, we generate sitemaps programmatically directly from the source code, so they're always up to date and contain only pages intended for indexing.
- /05
Practical example
For a portal with 500+ pages, we found that Google had only indexed 180 pages. The reason? There was no sitemap and internal linking was weak. After creating a dynamic sitemap in Next.js and submitting it to Search Console, Google indexed 460 pages within 2 weeks. Organic traffic grew by 65% as dozens of previously invisible pages began attracting long-tail search queries.
Verify whether your website has the right sitemap and whether Google indexes all important pages. Our website analysis finds out within minutes.
We'll be glad to help. The consultation is free and with no obligation.
Get in touchNeed help with your project?
Don't hesitate to reach out — we'll happily advise you on anything from website development to online marketing. The consultation is free.