Skip to content

Make robots.txt a static file again and remove dynamic route - #1968

Merged
joshuablum merged 1 commit into
6.xfrom
fix-robots-txt-404-status-code
Aug 20, 2026
Merged

Make robots.txt a static file again and remove dynamic route#1968
joshuablum merged 1 commit into
6.xfrom
fix-robots-txt-404-status-code

Conversation

@joshuablum

Copy link
Copy Markdown
Member

#1961 introduced an updated robots.txt file that included improvements for AI and agent readiness. Instead of a static text file in public it changed it to a controller handled dynamic route. The result is that when you visit https://statamic.dev/robots.txt you actually see the contents but looking at the request it returns a 404 status code. Reason is the nginx config and it having some rules in place for files such as robots.txt (happens locally with Herd too). This PR removes the dynamic route and controller and puts back the static but updated robots.txt file which includes all the AI/agent stuff.

@joshuablum
joshuablum merged commit df01339 into 6.x Aug 20, 2026
@joshuablum
joshuablum deleted the fix-robots-txt-404-status-code branch August 20, 2026 09:56
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