# The sitemap must name the same host every canonical does (www), or crawlers # are handed apex URLs that answer 301 — an extra DNS lookup, TCP connect and # TLS handshake before the page starts rendering, paid by every visitor # arriving from a search result. User-agent: * Allow: / # Routes the server renders client-side only (CSR_ONLY_ROUTES in src/server.ts) # plus the transactional pages around them. They return an empty shell to a # crawler, so indexing them adds nothing. # # No trailing slash on purpose. A Disallow is a literal prefix match, so # "/cart/" never matches "/cart", and Angular's routes carry no trailing slash: # the earlier "/cart/" form blocked precisely nothing. The path names are the # real ones from app.routes.ts too — /login, /signup, /account, /admin and # /search were listed for years and none of them has ever existed. Disallow: /auth Disallow: /cart Disallow: /checkout Disallow: /order-success Disallow: /orders Disallow: /payment/ Disallow: /profile Disallow: /track-order Disallow: /404 # Facet combinations are unbounded; pagination is deliberately left crawlable, # because /shop?page=N is how the catalogue past the first page is discovered. Disallow: /*?sort= Disallow: /*?filter= # No Crawl-delay on purpose: Google ignores it, and Bing reads it as a hard # throttle — 5 seconds a page is days of crawling for a catalogue this size. # # Nothing about the API host belongs here either. robots.txt is scoped to the # host that serves it, so a rule for the API host has to live on the API host # to mean anything. # # The Sitemap: line is deliberately absent. It is the one directive that must # be an absolute URL, and this file is built for every store this repository # ships; tools/sitemap-builder.js appends it to the build output from the same # origin it writes the sitemap with, so the two cannot drift apart. Sitemap: https://www.pledgestores.com/sitemap.xml