]> danix's work - danix.xyz-2.git/commitdiff
restore: re-add 404 redirect rules to hugo.toml
authorDanilo M. <redacted>
Fri, 17 Apr 2026 10:21:47 +0000 (12:21 +0200)
committerDanilo M. <redacted>
Fri, 17 Apr 2026 10:21:47 +0000 (12:21 +0200)
Restore the redirect rules that route /it/** and /** 404 errors to the
appropriate language-specific 404 layout files.

Co-Authored-By: Claude Haiku 4.5 <redacted>
hugo.toml

index ab6d43ea447c022d9c8acd51fe4b4d00ca2218da..364d0d3cf37df0515973ebda06c6d904790dc26b 100644 (file)
--- a/hugo.toml
+++ b/hugo.toml
@@ -127,10 +127,10 @@ enableRobotsTXT = true
 
 [[redirects]]
   from = '/it/**'
-  status = 404
   to = '/it/404.html'
+  status = 404
 
-[[redirects]]  # Default language should be last.
+[[redirects]]
   from = '/**'
+  to = '/404.html'
   status = 404
-  to = '/404.html'
\ No newline at end of file