website: add initial redirect (#1918)

* website: add initial redirect

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* website: add integrations too

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* website: add docs to netlify config

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* website: use splats correctly

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>

* add status

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens L 2021-12-13 21:42:31 +01:00 committed by GitHub
parent ace53a8fa5
commit 307cb94e3b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 25 additions and 0 deletions

View File

@ -2,10 +2,34 @@
from = "/discord"
to = "https://discord.gg/jg33eMhnj6"
# Migration from docs to separate directory
[[redirects]]
from = "/docs/integrations/*"
to = "/integrations/:splat"
# Docusaurus update removes index
[[redirects]]
from = "/docs/:firstPart/index"
to = "/docs/:firstPart/"
status = 301
force = true
[[redirects]]
from = "/docs/:firstPart/:secondPart/index"
to = "/docs/:firstPart/:secondPart/"
status = 301
force = true
[[redirects]]
from = "/integrations/:firstPart/index"
to = "/integrations/:firstPart/"
status = 301
force = true
[[redirects]]
from = "/integrations/:firstPart/:secondPart/index"
to = "/integrations/:firstPart/:secondPart/"
status = 301
force = true
# ?go-get=1 downloads
[[redirects]]
from = "/*"
to = "/.netlify/functions/go-get"
@ -13,6 +37,7 @@
force = true
query = {go-get = "1"}
# Container registry
[[redirects]]
from = "/v2"
to = "/.netlify/functions/oci-proxy"