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;