Skip to content

Rule · SEO

robots.txt serves HTML, exceeds 500 KiB, or has unparseable lines

seo/robots-txt-invalidwarnvoid seoupdated

Why it matters

A catch-all route returning HTML for /robots.txt means no rules; content after 500 KiB is ignored; malformed lines are skipped silently.

How to fix it

Generate robots.txt with app/robots.ts, keep it small, and use only User-agent/Allow/Disallow/Sitemap lines.

References

void seo reports 60 rules in this category. What search engines need from the raw response: status codes, titles and descriptions in <head>, self-referencing canonicals, one h1, crawlable links, Open Graph, icons, robots.txt and a sitemap with real dates.