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: Second attempt Created May 8, 2015, 10 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..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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld