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:
parent
ace53a8fa5
commit
307cb94e3b
|
@ -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"
|
||||
|
|
Reference in New Issue