diff --git a/netlify.toml b/netlify.toml index dc6f60b4..dfadd43f 100644 --- a/netlify.toml +++ b/netlify.toml @@ -6,3 +6,18 @@ publish = "docs/public/" command = "hugo -v" environment = { HUGO_VERSION = "0.37" } + +[[redirects]] + from = "https://gomods.io/*" + to = "https://docs.gomods.io/:splat" + status = 303 + +[[redirects]] + from = "http://gomods.io/*" + to = "https://docs.gomods.io/:splat" + status = 303 + +[[redirects]] + from = "https://gomods-athens.netlify.com/*" + to = "https://docs.gomods.io/:splat" + status = 303