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