Skip to content

zcu-pub: sync robots.txt with dtq-dev (remove /handle, add SSR facet rules) - #1648

Open
Kasinhou wants to merge 1 commit into
customer/zcu-pubfrom
fix/robots-sync-1085-zcu-pub
Open

Kasinhou wants to merge 1 commit into
customer/zcu-pubfrom
fix/robots-sync-1085-zcu-pub

Conversation

@Kasinhou

Copy link
Copy Markdown

What

Syncs src/robots.txt.ejs on customer/zcu-pub with dtq-dev — the file is now identical to dtq-dev.

Why

The robots file had drifted from dtq-dev. Two problems:

  1. It still blocked Disallow: /handle (and Disallow: /browse). /handle is DSpace's canonical persistent item URL, so blocking it keeps real records out of search engines. These are removed.
  2. It was missing the Discovery facet / scoped-search rules. Crawlers enumerating facet-filter combinations and per-collection/community search URLs were saturating SSR (HTTP 504). These rules are added.

Change

In the User-agent: * block:

  • Removed Disallow: /handle and Disallow: /browse
  • Added Disallow: /entities/*?f, Disallow: /collections/*/search, Disallow: /communities/*/search, Disallow: /*?f., Disallow: /*&f.

No other sections changed.

Refs dataquest-dev/dspace-customers#1085

🤖 Generated with Claude Code

Removes the stale `Disallow: /handle` (and `/browse`) rules and adds the
Discovery facet / scoped-search rules from dtq-dev. Brings src/robots.txt.ejs
in line with dtq-dev.

Refs dataquest-dev/dspace-customers#1085

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Kasinhou Kasinhou self-assigned this Oct 20, 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