Update redirects

This commit is contained in:
Dan Bader
2018-07-16 14:06:48 -07:00
parent e6b57530dd
commit e52e1a3721
+10 -5
View File
@@ -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!