fix: exclude robots.txt and index.xml from language redirect
All checks were successful
Deploy Internet for Kids / Build & Push (push) Successful in 9s
Deploy Internet for Kids / Deploy (push) Successful in 6s
Deploy Internet for Kids / Health Check (push) Successful in 2s
Deploy Internet for Kids / Smoke Tests (push) Successful in 3s
Deploy Internet for Kids / Rollback (push) Has been skipped
Deploy Internet for Kids / Audit (push) Successful in 1s

Search engines need direct access to /robots.txt and /sitemap.xml.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Christian Gick
2026-04-02 21:11:44 +03:00
parent 21af166c06
commit 2f7e3fce59

View File

@@ -35,7 +35,7 @@ server {
} }
# Redirect unprefixed paths to /en/ # Redirect unprefixed paths to /en/
location ~ ^/(?!en/|de/|fr/|css/|js/|img/|favicon|android|apple|site|llms|health) { location ~ ^/(?!en/|de/|fr/|css/|js/|img/|favicon|android|apple|site|llms|health|robots|index\.xml) {
return 302 /en$request_uri; return 302 /en$request_uri;
} }