From 8da917618a0b659c9bf44ec8b50f5d2d9cce88a6 Mon Sep 17 00:00:00 2001 From: Christian Gick Date: Thu, 2 Apr 2026 20:50:40 +0300 Subject: [PATCH] fix: redirect unprefixed paths to /en/ default language /about/ and /tags/ were 404ing after Docker migration since the redirect rule was previously in the gateway nginx config. Co-Authored-By: Claude Opus 4.6 (1M context) --- nginx.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nginx.conf b/nginx.conf index 0fac2a7..4b311f3 100644 --- a/nginx.conf +++ b/nginx.conf @@ -27,6 +27,11 @@ server { add_header Cache-Control "public, must-revalidate"; } + # Redirect unprefixed paths to /en/ + location ~ ^/(?!en/|de/|css/|js/|img/|favicon|android|apple|site|llms) { + return 302 /en$request_uri; + } + # Clean URLs location / { try_files $uri $uri/ $uri.html =404;