From 494f7b136c90b4d3233b4f764a7c6d51266e40e0 Mon Sep 17 00:00:00 2001 From: Ryan Malloy Date: Mon, 9 Mar 2026 01:23:57 -0600 Subject: [PATCH] Fix root redirect in docs-site Caddyfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Starlight has no index.html at document root — the landing page lives at /getting-started/index.html. Added a 302 redirect from / and fixed try_files to resolve directory indices correctly. --- docs-site/Caddyfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs-site/Caddyfile b/docs-site/Caddyfile index c4e4fa4..875f179 100644 --- a/docs-site/Caddyfile +++ b/docs-site/Caddyfile @@ -1,7 +1,9 @@ :80 { + redir / /getting-started/ 302 + root * /srv file_server - try_files {path} {path}/ /index.html + try_files {path} {path}/index.html {path}/ @nocache path /robots.txt /sitemap-index.xml /sitemap-*.xml header @nocache Cache-Control "no-cache, max-age=0"