fix: redirect unprefixed paths to /en/ default language
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 13s
All checks were successful
Build & Deploy / build-and-deploy (push) Successful in 13s
/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) <noreply@anthropic.com>
This commit is contained in:
@@ -27,6 +27,11 @@ server {
|
|||||||
add_header Cache-Control "public, must-revalidate";
|
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
|
# Clean URLs
|
||||||
location / {
|
location / {
|
||||||
try_files $uri $uri/ $uri.html =404;
|
try_files $uri $uri/ $uri.html =404;
|
||||||
|
|||||||
Reference in New Issue
Block a user