Skip to content

Commit de63ead

Browse files
committed
change: netlify.toml — redirect blog/* not found
1 parent bd6b729 commit de63ead

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

netlify.toml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,19 @@
33

44
[[redirects]]
55
from = "/blog/*"
6-
to = "/articles/blog/:splat"
7-
status = 200
6+
to = "/error"
7+
status = 404
88

99
[[redirects]]
10-
from = "/blog/*"
10+
from = "/blog/*/*"
1111
to = "/error"
1212
status = 404
1313

14+
[[redirects]]
15+
from = "/blog/*"
16+
to = "/articles/blog/:splat"
17+
status = 200
18+
1419
[[redirects]]
1520
from = "/*"
1621
to = "/error"

0 commit comments

Comments
 (0)