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 / {
|
||||
# rewrite ^(/.*)\.html(\?.*)?$ $1$2 permanent;
|
||||
# rewrite ^/(.*)/$ /$1 permanent;
|
||||
# try_files $uri $uri/index.html $uri.html $uri/ /en$uri @extensionless-php;
|
||||
rewrite .* /$lang$uri;
|
||||
if ( -d /var/www/website/$lang) {
|
||||
rewrite .* /$lang$uri;
|
||||
}
|
||||
if ( !-d /var/www/website/$lang) {
|
||||
rewrite .* /en$uri;
|
||||
}
|
||||
}
|
||||
|
||||
location /en {
|
||||
|
|
Loading…
Reference in New Issue