From e52e1a372197d6047fcc3e2cafaac1985aed1456 Mon Sep 17 00:00:00 2001 From: Dan Bader Date: Mon, 16 Jul 2018 14:06:48 -0700 Subject: [PATCH] Update redirects --- docs/_extra/_redirects | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/docs/_extra/_redirects b/docs/_extra/_redirects index a113f1b..e88dab8 100644 --- a/docs/_extra/_redirects +++ b/docs/_extra/_redirects @@ -1,7 +1,12 @@ -# https://www.netlify.com/docs/redirects/ +# Redirect rules +# Docs: https://www.netlify.com/docs/redirects/ -# Redirect RTD /en/latest/ prefix -/en/latest/* /:splat 301! +# Redirect http to https (avoid one extra hop with an explicit rule for /en/latest/) +http://docs.python-guide.org/en/latest/* https://docs.python-guide.org/:splat 301! +http://docs.python-guide.org/* https://docs.python-guide.org/:splat 301! -# TODO: Redirect internal URL to python-guide.org -# https://python-guide.netlify.com/* https://docs.python-guide.org/:splat 301! +# Redirect RTD prefix to / +/en/latest/* /:splat 301! + +# TODO: Redirect Netlify URL to python-guide.org +# https://python-guide.netlify.com/* https://docs.python-guide.org/:splat 301!