From ce456729283b3ce84cbac2cfcfa4d6159bcf1048 Mon Sep 17 00:00:00 2001 From: Rob j Loranger Date: Fri, 14 Sep 2018 13:03:34 -0700 Subject: [PATCH] redirect other domain requests to docs.gomods.io (#663) * redirect http{,s}://gomods{.io,-athens.netlify.com} to https://docs.gomods.io * forgot quotes --- netlify.toml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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