diff --git a/examples/Caddyfile.example b/examples/Caddyfile.example index ae3bed2..668689f 100644 --- a/examples/Caddyfile.example +++ b/examples/Caddyfile.example @@ -15,10 +15,6 @@ # root * /var/www/koalasync/website/www # encode zstd gzip # -# # Keep one canonical URL for indexable support pages. -# redir /help.html /help 308 -# redir /site-access-help.html /site-access-help 308 -# # # Clean URLs support (resolves /join to join.html, etc.) # try_files {path} {path}.html {path}/ # file_server @@ -65,10 +61,6 @@ sync.koalastuff.net { encode zstd gzip root * /var/www/koalasync/website/www - # Keep one canonical URL for indexable support pages. - redir /help.html /help 308 - redir /site-access-help.html /site-access-help 308 - # Clean URLs: Resolves paths without .html in the URL try_files {path} {path}.html {path}/ file_server diff --git a/scripts/test-website-theme.mjs b/scripts/test-website-theme.mjs index 62aa059..b0204fa 100644 --- a/scripts/test-website-theme.mjs +++ b/scripts/test-website-theme.mjs @@ -183,11 +183,6 @@ for (const value of requiredSelfHostingValues) { if ((selfHostingExamples.match(/localhost:3000/g) || []).length !== 2 || selfHostingExamples.includes('KoalaSync:3000')) { throw new Error('Both Caddy examples must match the compose loopback port binding'); } -if ((selfHostingExamples.match(/\/help\.html \/help 308/g) || []).length !== 2 - || (selfHostingExamples.match(/\/site-access-help\.html \/site-access-help 308/g) || []).length !== 2) { - throw new Error('Both Caddy examples must redirect legacy support-page URLs to their clean canonicals'); -} - const landingStylesheet = landingStylesheets[0][0]; if (!/href="\{\{ASSET_PATH\}\}landing\.min\.css"/.test(landingStylesheet)) { throw new Error('Landing stylesheet must use the landing.min.css build placeholder'); diff --git a/website/README.md b/website/README.md index fb84af1..fe1bc69 100644 --- a/website/README.md +++ b/website/README.md @@ -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 diff --git a/website/template.html b/website/template.html index ebe07f6..dd6541b 100644 --- a/website/template.html +++ b/website/template.html @@ -1418,10 +1418,6 @@ root * /var/www/koalasync/website/www encode zstd gzip - # Redirect legacy support-page URLs to their canonical clean URLs - redir /help.html /help 308 - redir /site-access-help.html /site-access-help 308 - # Clean URLs support (no .html required) try_files {path} {path}.html {path}/ file_server @@ -1454,10 +1450,6 @@ encode zstd gzip root * /var/www/koalasync/website/www - # Redirect legacy support-page URLs to their canonical clean URLs - redir /help.html /help 308 - redir /site-access-help.html /site-access-help 308 - # Clean URLs: Resolves paths without .html in the URL try_files {path} {path}.html {path}/ file_server