Index: modules/web/templates/site.conf.erb |
diff --git a/modules/web/templates/site.conf.erb b/modules/web/templates/site.conf.erb |
index c2df2aca72460ab63825ceaa3ad996c92103ffd6..47bc6123f0b2447cd51dd78fcc22b0e468630809 100644 |
--- a/modules/web/templates/site.conf.erb |
+++ b/modules/web/templates/site.conf.erb |
@@ -28,15 +28,15 @@ location / |
# Redirect canonical URLs to language-specific versions |
- if (-f "$document_root/${preferredLang}_$preferredRegion$uri") |
+ if (-e "$document_root/${preferredLang}_$preferredRegion$uri") |
{ |
rewrite ^(.*) /${preferredLang}_$preferredRegion$1 last; |
} |
- if (-f "$document_root/$preferredLang$uri") |
+ if (-e "$document_root/$preferredLang$uri") |
{ |
rewrite ^(.*) /$preferredLang$1 last; |
} |
- if (-f "$document_root/en$uri") |
+ if (-e "$document_root/en$uri") |
{ |
rewrite ^(.*) /en$1 last; |
} |