# Static-HTML site hardening for kb.anhonesthost.com.
# Lands in dist/ at build time and is uploaded with the rest of the site.

# Never expose a directory listing to visitors.
Options -Indexes

# Astro emits both /path/ (with index.html) and /path.html for every route.
# Default to the trailing-slash form; Apache MultiViews can sometimes serve
# /path.html for /path/, which Pagefind doesn't index — disable it.
Options -MultiViews

# Send anything that doesn't resolve to a file to /404.html.
# Starlight builds a real 404 page; this just makes Apache serve it.
ErrorDocument 404 /404.html
ErrorDocument 403 /404.html
