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..d437b726f37353f6ae8546a5ab23e4dcba426e38 100644 |
--- a/modules/web/templates/site.conf.erb |
+++ b/modules/web/templates/site.conf.erb |
@@ -36,6 +36,10 @@ location / |
{ |
rewrite ^(.*) /$preferredLang$1 last; |
} |
+ if (-f "$document_root/en$uri/$index_page") |
+ { |
+ rewrite ^(.*) /en$1 last; |
Wladimir Palant
2015/05/08 21:06:05
So people will always be redirected to the English
kzar
2015/05/08 22:01:42
Shucks, good point. Done.
|
+ } |
if (-f "$document_root/en$uri") |
{ |
rewrite ^(.*) /en$1 last; |