diff --git a/Caddyfile b/Caddyfile index 14d1068..c2d2c1a 100644 --- a/Caddyfile +++ b/Caddyfile @@ -1,13 +1,17 @@ :80 { - root * /srv - try_files {path} - file_server { - index index.html - } - handle_errors { - @404 { - expression {http.error.status_code} == 404 - } - redir @404 / 301 - } -} \ No newline at end of file + root * /srv + try_files {path} + file_server { + index index.html + } + handle_errors { + @404 { + expression {http.error.status_code} == 404 + } + redir @404 / 301 + } + @query { + not query "" + } + redir @query / 301 +}