Don't 500 when the Accept-Language translation is unavailable
This commit is contained in:
parent
0eef63e584
commit
2aa614b9c5
|
@ -40,10 +40,12 @@ location /LICENSE.txt {
|
||||||
}
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
# rewrite ^(/.*)\.html(\?.*)?$ $1$2 permanent;
|
if ( -d /var/www/website/$lang) {
|
||||||
# rewrite ^/(.*)/$ /$1 permanent;
|
rewrite .* /$lang$uri;
|
||||||
# try_files $uri $uri/index.html $uri.html $uri/ /en$uri @extensionless-php;
|
}
|
||||||
rewrite .* /$lang$uri;
|
if ( !-d /var/www/website/$lang) {
|
||||||
|
rewrite .* /en$uri;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
location /en {
|
location /en {
|
||||||
|
|
Loading…
Reference in New Issue