mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-04-29 17:20:21 -05:00
fix(netlify): redirect /epub and /pdf directly to GitHub Pages URLs
The relative path redirects were being caught by the catch-all redirect with force=true, causing a redirect chain that led to 404 errors. Fixes #1070
This commit is contained in:
@@ -30,22 +30,22 @@
|
||||
|
||||
[[redirects]]
|
||||
from = "/pdf"
|
||||
to = "/assets/downloads/Machine-Learning-Systems.pdf"
|
||||
to = "https://harvard-edge.github.io/cs249r_book/assets/downloads/Machine-Learning-Systems.pdf"
|
||||
status = 301
|
||||
|
||||
[[redirects]]
|
||||
from = "/pdf/"
|
||||
to = "/assets/downloads/Machine-Learning-Systems.pdf"
|
||||
to = "https://harvard-edge.github.io/cs249r_book/assets/downloads/Machine-Learning-Systems.pdf"
|
||||
status = 301
|
||||
|
||||
[[redirects]]
|
||||
from = "/epub"
|
||||
to = "/assets/downloads/Machine-Learning-Systems.epub"
|
||||
to = "https://harvard-edge.github.io/cs249r_book/assets/downloads/Machine-Learning-Systems.epub"
|
||||
status = 301
|
||||
|
||||
[[redirects]]
|
||||
from = "/epub/"
|
||||
to = "/assets/downloads/Machine-Learning-Systems.epub"
|
||||
to = "https://harvard-edge.github.io/cs249r_book/assets/downloads/Machine-Learning-Systems.epub"
|
||||
status = 301
|
||||
|
||||
[[redirects]]
|
||||
|
||||
Reference in New Issue
Block a user