]> danix's work - danix.xyz-2.git/commitdiff
fix: update 404 redirect rules to point to correct language pages
authorDanilo M. <redacted>
Fri, 17 Apr 2026 10:25:35 +0000 (12:25 +0200)
committerDanilo M. <redacted>
Fri, 17 Apr 2026 10:25:35 +0000 (12:25 +0200)
Changed redirects to route /it/** 404s to /it/404.html and /** 404s to /404.html
instead of redirecting to home pages.

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

index efbf60b90cab45d4bb245b89b991a759f75ad073..364d0d3cf37df0515973ebda06c6d904790dc26b 100644 (file)
--- a/hugo.toml
+++ b/hugo.toml
@@ -127,10 +127,10 @@ enableRobotsTXT = true
 
 [[redirects]]
   from = '/it/**'
-  to = '/it/'
+  to = '/it/404.html'
   status = 404
 
 [[redirects]]
   from = '/**'
-  to = '/'
+  to = '/404.html'
   status = 404