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 936c3c7

Browse filesBrowse files
committed
Redirect domain aliases
1 parent 35a4e33 commit 936c3c7
Copy full SHA for 936c3c7

File tree

Expand file treeCollapse file tree

1 file changed

+6
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-2
lines changed

‎docs/_extra/_redirects

Copy file name to clipboardExpand all lines: docs/_extra/_redirects
+6-2Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,16 @@
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 302!
6-
# http://docs.python-guide.org/* https://docs.python-guide.org/:splat 302!
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 /
99
/en/latest/* /:splat 302!
1010

1111
# TODO: Make those cacheable 301s when we're done
1212
# TODO: Redirect Netlify URL to python-guide.org
1313
# https://python-guide.netlify.com/* https://docs.python-guide.org/:splat 302!
14+
15+
# Redirect domain aliases to primary domain
16+
http://python-guide.org/* http://docs.python-guide.org/:splat 302!
17+
https://python-guide.org/* https://docs.python-guide.org/:splat 302!

0 commit comments

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