Skip to content

Commit 1f8bce9

Browse files
committed
fix: netlify.toml — redirect to /error if not found
1 parent 40875b2 commit 1f8bce9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

netlify.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from = "/blog/*"
66
to = "/articles/blog/:splat"
77
status = 200
8+
force = true
89

910
[[redirects]]
1011
from = "/signatures/*"
@@ -15,11 +16,13 @@
1516
from = "/blog/*"
1617
to = "/error"
1718
status = 404
19+
force = true
1820

1921
[[redirects]]
2022
from = "/blog/*/*"
2123
to = "/error"
2224
status = 404
25+
force = true
2326

2427
[[redirects]]
2528
from = "/*"

0 commit comments

Comments
 (0)