From 18df2465313af8d5f61326d1271511b298035134 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Wed, 24 Jun 2020 13:46:17 +0200 Subject: [PATCH] Add additional redirects for archives Putting these after the existing redirects, so that ee-specific redirects in the archives take precedence. Signed-off-by: Sebastiaan van Stijn --- _website-config-docs-stage.json | 39 +++++++++++++++++++++++++++++++++ _website-config-docs.json | 39 +++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) diff --git a/_website-config-docs-stage.json b/_website-config-docs-stage.json index 3bc0199610..3f00f16af1 100644 --- a/_website-config-docs-stage.json +++ b/_website-config-docs-stage.json @@ -344,6 +344,45 @@ "ReplaceKeyPrefixWith": null, "ReplaceKeyWith": "docker-enterprise/v3.0/dockeree-products/index.html" } + }, + { + "Condition": { + "HttpErrorCodeReturnedEquals": null, + "KeyPrefixEquals": "v17.06/" + }, + "Redirect": { + "HostName": "docs-stage.docker.com", + "HttpRedirectCode": null, + "Protocol": "https", + "ReplaceKeyPrefixWith": "", + "ReplaceKeyWith": null + } + }, + { + "Condition": { + "HttpErrorCodeReturnedEquals": null, + "KeyPrefixEquals": "v18.03/" + }, + "Redirect": { + "HostName": "docs-stage.docker.com", + "HttpRedirectCode": null, + "Protocol": "https", + "ReplaceKeyPrefixWith": "", + "ReplaceKeyWith": null + } + }, + { + "Condition": { + "HttpErrorCodeReturnedEquals": null, + "KeyPrefixEquals": "v18.09/" + }, + "Redirect": { + "HostName": "docs-stage.docker.com", + "HttpRedirectCode": null, + "Protocol": "https", + "ReplaceKeyPrefixWith": "", + "ReplaceKeyWith": null + } } ] } diff --git a/_website-config-docs.json b/_website-config-docs.json index 4aa17758ee..0b9b40dc12 100644 --- a/_website-config-docs.json +++ b/_website-config-docs.json @@ -344,6 +344,45 @@ "ReplaceKeyPrefixWith": null, "ReplaceKeyWith": "docker-enterprise/v3.0/dockeree-products/index.html" } + }, + { + "Condition": { + "HttpErrorCodeReturnedEquals": null, + "KeyPrefixEquals": "v17.06/" + }, + "Redirect": { + "HostName": "docs.docker.com", + "HttpRedirectCode": null, + "Protocol": "https", + "ReplaceKeyPrefixWith": "", + "ReplaceKeyWith": null + } + }, + { + "Condition": { + "HttpErrorCodeReturnedEquals": null, + "KeyPrefixEquals": "v18.03/" + }, + "Redirect": { + "HostName": "docs.docker.com", + "HttpRedirectCode": null, + "Protocol": "https", + "ReplaceKeyPrefixWith": "", + "ReplaceKeyWith": null + } + }, + { + "Condition": { + "HttpErrorCodeReturnedEquals": null, + "KeyPrefixEquals": "v18.09/" + }, + "Redirect": { + "HostName": "docs.docker.com", + "HttpRedirectCode": null, + "Protocol": "https", + "ReplaceKeyPrefixWith": "", + "ReplaceKeyWith": null + } } ] }