mirror of
https://github.com/kennethreitz/python-guide.git
synced 2026-06-05 23:00:18 +00:00
Update redirects
This commit is contained in:
+10
-5
@@ -1,7 +1,12 @@
|
|||||||
# https://www.netlify.com/docs/redirects/
|
# Redirect rules
|
||||||
|
# Docs: https://www.netlify.com/docs/redirects/
|
||||||
|
|
||||||
# Redirect RTD /en/latest/ prefix
|
# Redirect http to https (avoid one extra hop with an explicit rule for /en/latest/)
|
||||||
/en/latest/* /:splat 301!
|
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
|
# Redirect RTD prefix to /
|
||||||
# https://python-guide.netlify.com/* https://docs.python-guide.org/:splat 301!
|
/en/latest/* /:splat 301!
|
||||||
|
|
||||||
|
# TODO: Redirect Netlify URL to python-guide.org
|
||||||
|
# https://python-guide.netlify.com/* https://docs.python-guide.org/:splat 301!
|
||||||
|
|||||||
Reference in New Issue
Block a user