Technical SEO4 min read

Sitemaps, robots.txt and structured data: a practical setup

A sitemap, a robots file and honest structured data are small files with a large effect on how a site is crawled and understood. We explain how we set them up, how we check them, and how they sit inside a wider diagnostics.

Article cover: Sitemaps, robots.txt and structured data: a practical setup

Why these files matter

Search engines can discover pages through links alone, but a sitemap speeds up a clear picture of the official URLs. A robots.txt file tells crawlers where they should not spend time. Structured data, usually as JSON-LD, describes the page in a language that can be used for rich results — when it is true.

None of the three replaces good pages. They help a well-built site be read as we intend. Details of the wider hygiene are in the technical SEO checklist; findings often appear in a full diagnostics and in the report.

The sitemap.xml file

A sitemap lists the canonical URLs we want crawled, with last-modified dates when we can provide them honestly. We do not include closed pages, thank-you pages, or faceted duplicates we do not want indexed.

One file can hold up to 50,000 addresses and 50 MB; larger sites use a sitemap index. Images can be listed when they matter. A multilingual site should use the appropriate alternates — in our own sitemap we add xhtml:link so Russian, English and Japanese versions point to each other.

The robots.txt file

The file should be small, explicit and tested. We disallow what must not be crawled (for example a private search or a raw technical path), and we do not casually disallow sections that we later expect to rank. A link to the sitemap belongs here when that is the chosen setup.

Robots.txt is not a security tool. Anything sensitive must be protected by access control, not by a disallow line.

Structured data and JSON-LD

We mark up what is on the page: an organisation, an article, a breadcrumb, a FAQ that is really on the page. We do not mark up fictional reviews, invented ratings, or offers that are not present. Invalid or decorative markup is worse than a modest, accurate block.

Search tools and a rapid notice of changes

We connect the site to the webmaster tools of the search engines we care about, confirm ownership in a way that does not get lost during a redesign, and submit the sitemap. After important new or changed URLs we can also send a notice (for example IndexNow) so that crawlers are invited sooner. A notice is an invitation, not a guarantee of instant indexing.

A short checklist and usual mistakes

  • The sitemap opens, is valid, and lists current official URLs.
  • robots.txt does not block those URLs by accident.
  • JSON-LD parses, and matches visible content.
  • Tools show no persistent coverage errors we have ignored.
  • After a launch, old sitemaps and leftover staging rules are gone.

Usual mistakes: a sitemap of redirected URLs, a robots file copied from a staging site, markup for a product that is not on the page, and a lastmod date that never changes or always says “today”.

A simple configuration for a small site is: one sitemap, a short robots file, organisation and breadcrumb markup on key pages, article and FAQ markup on the blog. We check markup with official tools and by reading the page as a human.

Guarantees cover delivered work; a diagnostics can include this layer. We do not publish package prices here.

Frequently asked questions

Is a sitemap.xml mandatory?

It is not a legal requirement, but we almost always recommend it. For a small site with clear links it is still a useful, cheap signal. For a large or new site it is hard to justify skipping.

Can robots.txt hide a private page?

No. It is a request to crawlers, not a lock. Private pages need proper access control.

Do we need rich snippets for every page?

No. We mark up types we can fill honestly. Empty or fictional rating markup is a way to earn a manual or automated problem, not a shortcut to attention.

How often should the sitemap be updated?

When the set of official URLs changes, and on a sensible automatic schedule if the site publishes often. A blog or a shop should not wait for a yearly manual export.

What’s next

Shall we discuss your brief?

Describe the project in a couple of sentences and we will reply with how we would approach it and how long it would roughly take. We price each brief individually — leave a request. Exact terms and timelines are fixed in the contract after the brief.

✓ We fix defects in the delivered work free of charge for one month after handover. Guarantee terms

Read also

Site diagnostics3 min

What a full website diagnostics actually checks

What a full diagnostics includes: speed, technical SEO, security, errors, the mobile version, accessibility, legal notices and hosting, and how it differs from later fixes.

All blog articles → · All services