Skip to content

Commit 40875b2

Browse files
committed
fix: netlify.toml — fix accessing /blog/* redirecting to /error
1 parent 0240c2a commit 40875b2

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

netlify.toml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
# Learn more about this
22
# https://www.netlify.com/docs/netlify-toml-reference/
33

4-
[[redirects]]
5-
from = "/blog/*"
6-
to = "/error"
7-
status = 404
8-
9-
[[redirects]]
10-
from = "/blog/*/*"
11-
to = "/error"
12-
status = 404
13-
144
[[redirects]]
155
from = "/blog/*"
166
to = "/articles/blog/:splat"
@@ -21,6 +11,16 @@
2111
to = "/images/signatures/:splat"
2212
status = 200
2313

14+
[[redirects]]
15+
from = "/blog/*"
16+
to = "/error"
17+
status = 404
18+
19+
[[redirects]]
20+
from = "/blog/*/*"
21+
to = "/error"
22+
status = 404
23+
2424
[[redirects]]
2525
from = "/*"
2626
to = "/error"

0 commit comments

Comments
 (0)