Skip to content

Show AI crawlers a sitemap of CiteCue answer pages (1.6.0) - #23

Closed
henry-mosh wants to merge 1 commit into
mainfrom
feat/answer-page-sitemap
Closed

henry-mosh wants to merge 1 commit into
mainfrom
feat/answer-page-sitemap

Conversation

@henry-mosh

Copy link
Copy Markdown
Collaborator

Answer pages that exist only at CiteCue have no link pointing at them and are in no sitemap, so crawlers have little chance of finding them. The plugin now serves /citecue-sitemap.xml and adds a Sitemap: line for it to the robots.txt WordPress generates.

Only matched AI crawlers see either one. The proxy serves these pages to nobody else, so Googlebot following the list would collect 404s.

  • Marker: the response carries X-Citecue: crawler-sitemap, not the Cloudflare Worker's sitemap. CiteCue's install check asks as GPTBot and treats sitemap as safe to submit to Search Console, which isn't true here. Please don't "align" the two.
  • robots.txt makes no network call. The line can therefore point at a 404 while there is nothing to list.
  • No new setting. It follows the page-serving switch here, the citecue_should_serve filter, and "Help AI and search engines find your answer pages" in CiteCue.
  • Outbound calls share the existing per-minute budget, circuit breaker and caching.
  • Not covered: a physical robots.txt file wins over the generated one, so the line doesn't appear there.

Testing

  • PHPUnit in standard, WooCommerce-stub and multisite modes; phpcs clean.
  • bin/local-rig.sh verify on WordPress 7.1.5 with the stub API, including four new checks: GPTBot gets the XML and the robots.txt line; Googlebot gets a 404 and no line.
  • Not tested against the live CiteCue API.

Merge order

#20 (language versions, 1.4.0) edits some of the same files, so whichever merges second needs a small conflict fix in the version numbers and changelog.

🤖 Generated with Claude Code

Answer pages that exist only at CiteCue have no link pointing at them and
are in no sitemap. The plugin now answers /citecue-sitemap.xml from the
delivery API and declares it in the robots.txt WordPress generates.

Both go to matched AI crawlers only. The proxy serves those pages to nobody
else, so a search engine given the list would collect 404s. The marker is
X-Citecue: crawler-sitemap rather than the Worker's "sitemap", which CiteCue
reads as permission to submit the sitemap to Search Console.

Ships as 1.6.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@henry-mosh

Copy link
Copy Markdown
Collaborator Author

Closing without merging. Since 1.5.1, Publish puts a real page on the site by default, llms.txt already gives AI crawlers a list, and this sitemap would have to stay hidden from Google because the plugin serves these pages to AI crawlers only. The branch is kept in case we want it later.

🤖 Posted by Claude Code

@henry-mosh henry-mosh closed this Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant