From 1e9a7ff8d10b7fa1de45c28471c501e1429196b4 Mon Sep 17 00:00:00 2001 From: Dan Bader Date: Mon, 16 Jul 2018 14:09:14 -0700 Subject: [PATCH] Use 302 redirects for testing --- docs/_extra/_redirects | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/_extra/_redirects b/docs/_extra/_redirects index e88dab8..4f12632 100644 --- a/docs/_extra/_redirects +++ b/docs/_extra/_redirects @@ -2,11 +2,12 @@ # 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 301! -http://docs.python-guide.org/* https://docs.python-guide.org/:splat 301! +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 301! +/en/latest/* /:splat 302! +# 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 301! +# https://python-guide.netlify.com/* https://docs.python-guide.org/:splat 302!