|
1 |
| -# https://www.netlify.com/docs/redirects/ |
| 1 | +# Redirect rules |
| 2 | +# Docs: https://www.netlify.com/docs/redirects/ |
2 | 3 |
|
3 |
| -# Redirect RTD /en/latest/ prefix |
4 |
| -/en/latest/*/:splat301! |
| 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/:splat301! |
| 6 | +http://docs.python-guide.org/*https://docs.python-guide.org/:splat301! |
5 | 7 |
|
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/*/:splat301! |
| 10 | + |
| 11 | +# TODO: Redirect Netlify URL to python-guide.org |
| 12 | +# https://python-guide.netlify.com/* https://docs.python-guide.org/:splat 301! |