File tree 1 file changed +8
-9
lines changed
1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change 2
2
# Docs: https://www.netlify.com/docs/redirects/
3
3
4
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 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 301 !
6
+ http://docs.python-guide.org/* https://docs.python-guide.org/:splat 301 !
7
7
8
8
# Redirect RTD prefix to /
9
- /en/latest/* /:splat 302 !
10
-
11
- # TODO: Make those cacheable 301s when we're done
12
- # TODO: Redirect Netlify URL to python-guide.org
13
- # https://python-guide.netlify.com/* https://docs.python-guide.org/:splat 302!
9
+ /en/latest/* /:splat 301 !
14
10
15
11
# 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 !
12
+ http://python-guide.org/* http://docs.python-guide.org/:splat 301 !
13
+ https://python-guide.org/* https://docs.python-guide.org/:splat 301 !
14
+
15
+ # Redirect Netlify version to primary domain
16
+ https://python-guide.netlify.com/* https://docs.python-guide.org/:splat 301 !
You can’t perform that action at this time.
0 commit comments