fix: remove unsupported legacy redirects

This commit is contained in:
KoalaDev
2026-07-28 07:35:46 +02:00
parent 2c5e2a7cc3
commit ffd629a522
4 changed files with 0 additions and 23 deletions
-2
View File
@@ -73,8 +73,6 @@ Minimal static-site block:
```caddy
sync.koalastuff.net {
root * /var/www/koalasync/website/www
redir /help.html /help 308
redir /site-access-help.html /site-access-help 308
try_files {path} {path}.html {path}/
file_server
encode zstd gzip
-8
View File
@@ -1418,10 +1418,6 @@
<span class="t-key">root</span> <span class="t-val">*</span> <span class="t-str">/var/www/koalasync/website/www</span>
<span class="t-key">encode</span> <span class="t-val">zstd gzip</span>
<span class="t-comment"># Redirect legacy support-page URLs to their canonical clean URLs</span>
<span class="t-key">redir</span> <span class="t-val">/help.html /help 308</span>
<span class="t-key">redir</span> <span class="t-val">/site-access-help.html /site-access-help 308</span>
<span class="t-comment"># Clean URLs support (no .html required)</span>
<span class="t-key">try_files</span> <span class="t-val">{path} {path}.html {path}/</span>
<span class="t-key">file_server</span>
@@ -1454,10 +1450,6 @@
<span class="t-key">encode</span> <span class="t-val">zstd gzip</span>
<span class="t-key">root</span> <span class="t-val">*</span> <span class="t-str">/var/www/koalasync/website/www</span>
<span class="t-comment"># Redirect legacy support-page URLs to their canonical clean URLs</span>
<span class="t-key">redir</span> <span class="t-val">/help.html /help 308</span>
<span class="t-key">redir</span> <span class="t-val">/site-access-help.html /site-access-help 308</span>
<span class="t-comment"># Clean URLs: Resolves paths without .html in the URL</span>
<span class="t-key">try_files</span> <span class="t-val">{path} {path}.html {path}/</span>
<span class="t-key">file_server</span>