Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e52e1a3

Browse filesBrowse files
committed
Update redirects
1 parent e6b5753 commit e52e1a3
Copy full SHA for e52e1a3

File tree

1 file changed

+10
-5
lines changed
Filter options

1 file changed

+10
-5
lines changed

‎docs/_extra/_redirects

Copy file name to clipboard
+10-5Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
1-
# https://www.netlify.com/docs/redirects/
1+
# Redirect rules
2+
# Docs: https://www.netlify.com/docs/redirects/
23

3-
# Redirect RTD /en/latest/ prefix
4-
/en/latest/* /:splat 301!
4+
# 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!
57

6-
# TODO: Redirect internal URL to python-guide.org
7-
# https://python-guide.netlify.com/* https://docs.python-guide.org/:splat 301!
8+
# Redirect RTD prefix to /
9+
/en/latest/* /:splat 301!
10+
11+
# TODO: Redirect Netlify URL to python-guide.org
12+
# https://python-guide.netlify.com/* https://docs.python-guide.org/:splat 301!

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.