From 135e41d14ed2cf792d737d9316ce6a411529e565 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Tue, 26 Apr 2016 11:33:47 +0200 Subject: [PATCH 1/2] www: redirect from '//downloads/stable' to '//downloads/current' With the change of release names from 'Stable' to 'Current' (introduced with Node.js v6), the old download page needs to be redirected. Ref: - https://github.com/nodejs/node/pull/6318 - https://github.com/nodejs/nodejs.org/pull/672 --- setup/www/resources/config/nodejs.org | 3 +++ 1 file changed, 3 insertions(+) diff --git a/setup/www/resources/config/nodejs.org b/setup/www/resources/config/nodejs.org index bcb13dbcb..e80738d1b 100644 --- a/setup/www/resources/config/nodejs.org +++ b/setup/www/resources/config/nodejs.org @@ -392,4 +392,7 @@ server { rewrite ^/images/(.*) https://$server_name/static/images/$1 permanent; rewrite ^/windows-environment$ https://github.com/nodejs/node/wiki/Windows-Environment permanent; + + # Rename 'Stable' release to 'Current' + rewrite ^/(.*)/downloads/stable$ https://$server_name/$1/downloads/current permanent; } From 947afc11067833ab494b2d722c7b00e20830ddb0 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Tue, 26 Apr 2016 22:00:44 +0200 Subject: [PATCH 2/2] www: s/downloads/download/ --- setup/www/resources/config/nodejs.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup/www/resources/config/nodejs.org b/setup/www/resources/config/nodejs.org index e80738d1b..ae5c570b7 100644 --- a/setup/www/resources/config/nodejs.org +++ b/setup/www/resources/config/nodejs.org @@ -394,5 +394,5 @@ server { rewrite ^/windows-environment$ https://github.com/nodejs/node/wiki/Windows-Environment permanent; # Rename 'Stable' release to 'Current' - rewrite ^/(.*)/downloads/stable$ https://$server_name/$1/downloads/current permanent; + rewrite ^/(.*)/download/stable$ https://$server_name/$1/download/current permanent; }