Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1e9a7ff

Browse files
committed
Use 302 redirects for testing
1 parent e52e1a3 commit 1e9a7ff

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

docs/_extra/_redirects

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
# Docs: https://www.netlify.com/docs/redirects/
33

44
# Redirect http to https (avoid one extra hop with an explicit rule for /en/latest/)
5-
http://docs.python-guide.org/en/latest/* https://docs.python-guide.org/:splat 301!
6-
http://docs.python-guide.org/* https://docs.python-guide.org/:splat 301!
5+
http://docs.python-guide.org/en/latest/* https://docs.python-guide.org/:splat 302!
6+
http://docs.python-guide.org/* https://docs.python-guide.org/:splat 302!
77

88
# Redirect RTD prefix to /
9-
/en/latest/* /:splat 301!
9+
/en/latest/* /:splat 302!
1010

11+
# TODO: Make those cacheable 301s when we're done
1112
# TODO: Redirect Netlify URL to python-guide.org
12-
# https://python-guide.netlify.com/* https://docs.python-guide.org/:splat 301!
13+
# https://python-guide.netlify.com/* https://docs.python-guide.org/:splat 302!

0 commit comments

Comments
 (0)