0%
XML sitemaps and robots.txt are the foundation of how Google crawls your site correctly. From why Google ignores priority and changefreq fields to when crawl budget actually matters, this guide covers every critical point.

Two files are critical for Google to understand your site correctly: the XML sitemap and robots.txt. The first tells Google which pages exist and when they were last updated; the second specifies which areas it should or should not access. Errors in either file can prevent good content from being indexed — or result in the wrong pages being indexed. This guide covers everything you need to configure both files correctly.
An XML sitemap is a list of URLs you present to Google and other search engines. It helps Googlebot discover new or updated pages more quickly. However, adding every URL to your sitemap does not make it stronger — it actually sends a cluttered and unreliable signal.
Pages that should be included in your sitemap: published pages with a canonical tag pointing to themselves, blog posts and product or category pages you want indexed, and multilingual pages together with their hreflang alternatives. Pages that must never appear in your sitemap: pages carrying a noindex tag (this creates a direct contradiction), duplicate pages whose canonical tag points to another URL, URLs returning a 301 or 302 redirect, pages returning a 404 error, thin-content pages with no real value, and pages blocked by robots.txt or requiring a login.
The priority (a value between 0.0 and 1.0) and changefreq (always, daily, weekly, etc.) fields defined in the XML sitemap specification are officially ignored by Google. Google Search Central documentation is unambiguous on this point: the priority field is subjective and internal studies have shown it generally does not accurately reflect a page's true importance relative to other pages on the same site. The changefreq field is a declaration that cannot be verified in practice, so Googlebot makes its own decisions. This was further confirmed in a June 2023 Google Search Central Blog post.
The only field Google actually uses from sitemaps is lastmod — and only when it is consistently and verifiably accurate. If you update a page every day but never change the lastmod value, or if you do change it but the page content stays the same, the signal loses credibility with Googlebot. The conclusion: update lastmod carefully and only on pages that genuinely change; either omit priority and changefreq entirely or, if your platform writes them automatically, understand they have no practical impact on Google.
The robots.txt file lives in the root of your domain (example.com/robots.txt) and instructs search engine crawlers which URLs they may or may not access. Google only supports four directives in this file: User-agent, Disallow, Allow, and Sitemap. Any other directive — especially Crawl-delay — is ignored by Googlebot. Crawl-delay is still recognized by Bing and Yandex, but it provides no actual rate protection for Googlebot.
Basic syntax works as follows: each rule group starts with a User-agent line. Use User-agent: * for all bots. The line Disallow: /admin/ blocks everything under the /admin/ path. The line Allow: /admin/public/ can override a Disallow rule for a specific sub-path. The directive name (Disallow, Allow) is case-insensitive, but the path value is case-sensitive.
Adding a sitemap declaration to robots.txt looks like this: Sitemap: https://example.com/sitemap.xml — This line is placed at the end of the file, independent of any User-agent group, and is read by all major crawlers. If you have multiple sitemaps, add one Sitemap line for each.
Submitting your sitemap through Google Search Console is the most direct way to help Google find your pages faster. Go to Search Console, navigate to Indexing > Sitemaps in the left menu, and add your sitemap URL. Once Google processes the submitted sitemap, it reports how many URLs were discovered and how many were actually indexed.
Common errors you may see in the Coverage (or Page Indexing) report and how to fix them: Submitted and indexed is the ideal state. Submitted but not indexed means Google decided the page lacks sufficient value — strengthen the content. Sitemap URL not canonical means a non-canonical URL was added to the sitemap — align the sitemap with canonical tags. Blocked by robots.txt means the URL is both in the sitemap and blocked by robots.txt — resolve the contradiction. Checking the Coverage report monthly is the most practical way to catch indexing problems early.
Crawl budget is the upper limit of how many pages Googlebot will crawl on your site within a given period. Despite being a heavily covered topic in SEO content, it is only a meaningful concern for sites of a specific scale. According to Google's official documentation, crawl budget guidance applies primarily to: medium and large sites with more than 10,000 frequently changing URLs (updated daily); large sites with more than 1 million URLs that change moderately often (weekly); and sites where a significant portion of URLs are in a "Discovered — currently not indexed" state.
Google Search Advocate John Mueller has stated repeatedly that crawl budget is overrated and that most sites never need to think about it. A practical guideline: if your Search Console Coverage report does not show a large volume of crawled-but-not-indexed URLs, crawl budget is not a practical problem for you. The factors that truly drive efficient crawling are site authority (a quality backlink profile), page quality and originality, internal linking structure, and freshness signals. Crawl budget is an indirect consequence of these factors — not a direct target to optimize.
The most common technical SEO conflicts arise from sitemap, robots.txt, and canonical tags contradicting each other. These conflicts confuse Googlebot and lead to pages failing to get indexed or the wrong version being indexed.
XML sitemap and robots.txt configuration is the most fundamental layer of SEO. An incorrect setup creates a ceiling that prevents even your best content from reaching its ranking potential. At ADWEBX, our technical SEO audits systematically examine the sitemap-robots.txt-canonical triad and resolve Coverage report issues at their root cause. Request a free technical SEO analysis to find out whether your site's technical foundation is solid. You can also reach us on WhatsApp: +90 532 247 73 88.
Yes, Google can discover pages through internal links and external backlinks without a sitemap. However, a sitemap helps new or updated pages get discovered faster. For small, well-internally-linked sites it is not critical, but adding a sitemap carries no risk and is always recommended.
No. Google officially ignores the priority field. Setting it to 1.0, 0.5, or 0.1 has no effect on Google's crawling or indexing decisions. If you want to signal importance, the right method is internal linking: link to important pages from your homepage and high-authority hub pages.
No. A robots.txt Disallow rule only prevents Googlebot from crawling that URL — it does not remove a page that is already indexed. To remove a page from the index, you need to add a noindex meta tag to the page or use the URL Removal tool in Google Search Console. For pages that are still crawlable, using noindex is generally a safer approach than Disallow.
If your site has a few thousand pages and your Search Console Coverage report does not show a large volume of crawled-but-not-indexed URLs, crawl budget is not a practical concern for you. Google's John Mueller has made this clear: crawl budget is meaningful for sites generating large numbers of URLs at scale — typically 10,000+ frequently changing or 1 million+ total. Focusing on page quality, backlink authority, and internal linking structure delivers far higher returns.
A single XML sitemap file can contain a maximum of 50,000 URLs or 50 MB (uncompressed). For large sites that exceed these limits, a sitemap index file is used: this is a parent XML document that lists multiple individual sitemap files, each complying with the 50,000 URL limit. The sitemap index file is submitted to Search Console as a single file and provides a unified view covering all child sitemaps.
A misconfigured sitemap or robots.txt file causes valuable pages to go unindexed, silently killing your organic potential.
Manage indexation and crawl budget with technical SEOYou can start measuring your search performance today, for free.
Explore all our free SEO and digital marketing tools in one placeFAQ
An XML sitemap is a roadmap that tells search engines which URLs you want indexed. Robots.txt specifies which URLs you do not want crawled. The two are complementary: sitemap.xml highlights pages you want indexed, while robots.txt restricts crawler access to areas like admin panels, staging environments, or thin-content pages. Conflicting configurations — setting the same URL in opposing directions in both files — cause indexing problems.
Pages to include in the sitemap are all canonical URLs you want indexed: main content pages, service pages, blog posts, and product pages. Pages to exclude are: URLs with 301 redirects (include the destination URL instead), pages with a noindex tag, duplicate content (where the canonical points to a different URL), login and admin pages, and parametric URLs (filters, sorting). Including pages that should be excluded wastes crawl budget.
Robots.txt errors typically cause harm in two directions: unintended blocking (for example, accidentally blocking CSS or JS files prevents Google from rendering pages correctly) or unintended access (admin pages or sensitive data become crawlable). A misconfiguration like 'Disallow: /' hides the entire site from search engines. Testing robots.txt changes with Google Search Console's URL Inspection tool before deploying is essential.
The sitemap should be updated whenever new pages are published, existing URLs change, or pages are removed. Most modern CMS platforms and site infrastructures handle this automatically, but static sites or custom builds require manual checking. Resubmitting the updated sitemap in Google Search Console helps search engines learn of changes faster. Sitemaps left unchanged for years that still include removed pages negatively affect crawl efficiency.
Start with a free preliminary assessment.