Skip to content

Commit 9486ed2

Browse files
fhembergerjbergstroem
authored andcommitted
www: redirect stable current
With the change of release names from 'Stable' to 'Current' (introduced with Node.js v6), the old download page needs to be redirected. PR-URL: #399 Refs: nodejs/node#6318 Refs: nodejs/nodejs.org#672 Reviewed-By: Johan Bergström <[email protected]>
1 parent dd2f493 commit 9486ed2

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

setup/www/resources/config/nodejs.org

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -392,4 +392,7 @@ server {
392392
rewrite ^/images/(.*) https://$server_name/static/images/$1 permanent;
393393

394394
rewrite ^/windows-environment$ https://github.com/nodejs/node/wiki/Windows-Environment permanent;
395+
396+
# Rename 'Stable' release to 'Current'
397+
rewrite ^/(.*)/download/stable$ https://$server_name/$1/download/current permanent;
395398
}

0 commit comments

Comments
 (0)