Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/web/templates/site.conf.erb

Issue 4822862858813440: Issue 2472 - Have https://eyeo.com/jobs redirect properly (Closed)
Patch Set: Created May 7, 2015, 7:49 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld