From 2f7e3fce59016eb4e6960e15a41f1f117cbcf020 Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Thu, 2 Apr 2026 21:11:44 +0300 Subject: [PATCH] fix: exclude robots.txt and index.xml from language redirect Search engines need direct access to /robots.txt and /sitemap.xml. Co-Authored-By: Claude Opus 4.6 (1M context) --- nginx.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.conf b/nginx.conf index ccbc8e5..3b7222f 100644 --- a/nginx.conf +++ b/nginx.conf @@ -35,7 +35,7 @@ server { } # 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; }