Skip to content

Commit a710cfb

Browse files
authored
fix: blog — redirect blog/{slug}/invalid not found (#194)
fix: `blog` — redirect `blog/{slug}/invalid` not found
2 parents bd6b729 + de63ead commit a710cfb

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)