From 3b661a698e1ef40d0bf8241fcd56999591e7b230 Mon Sep 17 00:00:00 2001 From: futile Date: Fri, 24 Jul 2026 16:41:00 +0100 Subject: [PATCH] update caddyfile --- Caddyfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Caddyfile b/Caddyfile index cf21867..29bba9b 100644 --- a/Caddyfile +++ b/Caddyfile @@ -7,9 +7,15 @@ atom.town { root * /srv/home encode zstd + # /index.html -> / + @indexhtml path_regexp idx ^(.*/)index\.html$ + redir @indexhtml {re.idx.1} permanent + + # /something.html -> /something @html path_regexp strip ^(.+)\.html$ redir @html {re.strip.1} permanent + # something -> something.html try_files {path} {path}.html {path}/index.html file_server