Skip to content

Update robots.txt to not index the search page. - #366

Merged
stumbo merged 1 commit into
mainfrom
bs42_SEO_Optimization_no_index
Nov 22, 2026
Merged

stumbo merged 1 commit into
mainfrom
bs42_SEO_Optimization_no_index

Conversation

@stumbo

@stumbo stumbo commented Nov 22, 2026

Copy link
Copy Markdown
Member

This is one of the changes suggested in the earlier draft SEO Optimization PR (PR #351). This change seems small and non-controversial, so I thought I would pull it out as a standalone PR.

The change is to ensure the search.md page, the page where the search results retrieved from Google Custom Search are not indexed. There is no value in indexing the page.

The other minor update to the robots.txt file adds the location of the sitemap file, again a minor update that provides a hint to crawlers.

@stumbo
stumbo requested review from masinter and pamoroso and a balanced review from Copilot November 22, 2026 16:32
@stumbo stumbo self-assigned this Nov 22, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The /search/ robots.txt disallow prevents crawlers from seeing the page’s noindex directive, so search URLs can remain indexed or be indexed from incoming links.

1 open issue
What changed in this PR

This PR aims to keep the Google Custom Search results page out of search-engine indexes and help crawlers discover the site’s sitemap.

Changes:

  • Adds a /search/ crawl restriction and sitemap URL to robots.txt.
  • Adds page-level noindex metadata, which also triggers the existing sitemap exclusion.
  • Documents the intended search-page indexing behavior.
File Description
README.md Documents the search page’s indexing restrictions.
layouts/​robots.txt Disallows crawling /search/ and advertises the sitemap.
content/​en/​search.md Sets robots = "noindex" for the search results page.

Review effort: Balanced

Comment thread layouts/robots.txt Resolved

@pamoroso pamoroso left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks reasonable to me.

@interlisp-staging-bot

Copy link
Copy Markdown

Staging preview for this pull request is available at https://interlisp.org/Interlisp.staging/pr-366/

@stumbo
stumbo merged commit 1acfe4f into main Nov 22, 2026
7 checks passed
@stumbo
stumbo deleted the bs42_SEO_Optimization_no_index branch November 22, 2026 21:48
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.

3 participants