We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4030c77 commit 0a34b07Copy full SHA for 0a34b07
setup/www/resources/config/nodejs.org
@@ -45,6 +45,8 @@ server {
45
}
46
47
location / {
48
+ try_files $uri $uri/ @english_fallback;
49
+
50
location ~ \.json$ {
51
add_header access-control-allow-origin *;
52
@@ -59,6 +61,13 @@ server {
59
61
60
62
63
64
65
66
+ # instead of serving a 404 page when a page hasn't been translated
67
+ location @english_fallback {
68
+ rewrite ^/(it|ko)/(.*)$ http://nodejs.org/en/$2;
69
+ return 404;
70
+ }
71
72
73
server {
0 commit comments