From 8a143518dd44c5bbe9a6ca726492a76ac28ed296 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Thu, 5 Apr 2018 09:13:30 +0200 Subject: [PATCH 1/2] nginx: Redirect old inspector docs Ref: https://github.com/nodejs/nodejs.org/pull/1610 --- setup/www/resources/config/nodejs.org | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup/www/resources/config/nodejs.org b/setup/www/resources/config/nodejs.org index 579309d31..d981d3a35 100644 --- a/setup/www/resources/config/nodejs.org +++ b/setup/www/resources/config/nodejs.org @@ -423,4 +423,6 @@ server { rewrite ^/static/documents/casestudies/(.*)$ https://foundation.nodejs.org/wp-content/uploads/sites/50/2017/09/$1 permanent; rewrite ^/static/documents/minutes/nodejs-foundation-board-meeting-(.*).pdf$ https://github.com/nodejs/board/blob/master/minutes/$1.md permanent; + + rewrite ^/en/docs/inspector/$ https://$server_name/en/docs/guides/debugging-getting-started/ permanent; } From 09c5bbe7baeb7267af0c968c9d4bd5ce70dd63f1 Mon Sep 17 00:00:00 2001 From: Frederic Hemberger Date: Sun, 8 Apr 2018 17:03:31 +0200 Subject: [PATCH 2/2] nginx: Redirect old inspector docs (node executable) Turns out node was linking to https://nodejs.org/en/docs/inspector. This fixes the redirect as well. Ref: https://github.com/nodejs/nodejs.org/issues/1619 --- 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 d981d3a35..1c97e6f0c 100644 --- a/setup/www/resources/config/nodejs.org +++ b/setup/www/resources/config/nodejs.org @@ -424,5 +424,5 @@ server { rewrite ^/static/documents/casestudies/(.*)$ https://foundation.nodejs.org/wp-content/uploads/sites/50/2017/09/$1 permanent; rewrite ^/static/documents/minutes/nodejs-foundation-board-meeting-(.*).pdf$ https://github.com/nodejs/board/blob/master/minutes/$1.md permanent; - rewrite ^/en/docs/inspector/$ https://$server_name/en/docs/guides/debugging-getting-started/ permanent; + rewrite ^/en/docs/inspector/?$ https://$server_name/en/docs/guides/debugging-getting-started/ permanent; }