From 936c3c7df55578f5d98a58088c210b206add6993 Mon Sep 17 00:00:00 2001 From: Dan Bader Date: Mon, 16 Jul 2018 14:15:38 -0700 Subject: [PATCH] Redirect domain aliases --- docs/_extra/_redirects | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/_extra/_redirects b/docs/_extra/_redirects index 350c2b9..f70212b 100644 --- a/docs/_extra/_redirects +++ b/docs/_extra/_redirects @@ -2,8 +2,8 @@ # Docs: https://www.netlify.com/docs/redirects/ # 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 302! -# http://docs.python-guide.org/* https://docs.python-guide.org/:splat 302! +http://docs.python-guide.org/en/latest/* https://docs.python-guide.org/:splat 302! +http://docs.python-guide.org/* https://docs.python-guide.org/:splat 302! # Redirect RTD prefix to / /en/latest/* /:splat 302! @@ -11,3 +11,7 @@ # TODO: Make those cacheable 301s when we're done # TODO: Redirect Netlify URL to python-guide.org # https://python-guide.netlify.com/* https://docs.python-guide.org/:splat 302! + +# Redirect domain aliases to primary domain +http://python-guide.org/* http://docs.python-guide.org/:splat 302! +https://python-guide.org/* https://docs.python-guide.org/:splat 302!