Intermediate

Sitemap and robots.txt practices

Use sitemap, robots.txt, and canonical URLs correctly so search systems can find the right pages.

Do not mix the roles

sitemap.xml lists important URLs, robots.txt controls crawling paths, and canonical URLs identify the preferred version of duplicate content.

Sitemap

Include public, indexable, stable, valuable pages. Do not include login pages, admin pages, internal search results, or duplicate parameter URLs.

robots.txt

Do not block CSS, JavaScript, or image resources required for rendering. Do not use robots.txt to protect sensitive data.

Canonical

When the same content appears under multiple URLs, canonical should point to the version you want search systems to consolidate around.