Your site points crawlers at a development address
A localhost or staging address in robots.txt, the sitemap or the canonical tag. Why a crawler cannot follow it, and the build setting that is usually behind it.
http://localhost:3000/sitemap.xml opens on exactly one computer: the developer’s. To every crawler on the internet it is a dead end.
Your report found an address like that in one of three places:
| The card says | Where the address is |
|---|---|
| “robots.txt sends crawlers to a sitemap on a development address” | the Sitemap: line in robots.txt |
| “Your sitemap lists its pages on a development address” | the addresses inside the sitemap |
| “robots.txt and your sitemap both point crawlers at a development address” | both |
| “The canonical tag points at a development address” | the page’s rel="canonical" tag |
The site works for everyone. Only the directions to it are wrong.
Why it matters
A crawler that follows the Sitemap: line, or the addresses inside the sitemap, finds pages it cannot open. Google asks for “fully-qualified, absolute URLs” in a sitemap, and an address only one machine can reach does not qualify.
The canonical case is worse. A canonical tag tells search engines which address is the real copy of the page. Pointing it at a development address tells them the page they can see is a copy of one they cannot.
Where to fix it
Search the build settings for the old address before touching the files. Fix the setting and rebuild, or the next deploy writes the wrong address back. Look for a site address, base URL or “home” setting that still holds its development value after the site was copied to the live server.
Then check the three places by hand:
robots.txt: theSitemap:line should read likeSitemap: https://example.com/sitemap.xml, with your live address.- The sitemap: every
<loc>should start with your live address. - The page source:
<link rel="canonical" href="...">should name this page’s own live address.
Who makes the change
The developer who built or moved the site.
A note for your developer
A ClearReadout check of [page address] found a development address ([e.g. http://localhost:3000]) in [robots.txt / the sitemap / the canonical tag].
Could you set the site's live address in the build or site settings, rebuild, and confirm robots.txt, the sitemap and the canonical tag all use https://[our domain]?
Check again
Run Check again from your report after the rebuild. Or check your page.