Skip to content

fix(site): serve the site's own 404 page on iggy.apache.org - #82

Merged
kparisa merged 3 commits into
apache:mainfrom
justinmclean:site/serve-custom-404
Sep 3, 2026
Merged

fix(site): serve the site's own 404 page on iggy.apache.org#82
kparisa merged 3 commits into
apache:mainfrom
justinmclean:site/serve-custom-404

Conversation

@justinmclean

@justinmclean justinmclean commented Sep 3, 2026

Copy link
Copy Markdown
Member

next build already emits out/404.html, but the ASF web server never uses it: unknown paths get httpd's bare "Not Found" body instead. The status code is 404 either way, so this only changes what agents and humans read on the way out -- the built page points at /docs, /sitemap.xml and /llms.txt, which is the useful part.

Add a root .htaccess with ErrorDocument 404 /404.html and copy it into out/ alongside .asf.yaml in both the deploy and stage workflows.

Verify on iggy.staged.apache.org before merging: the .htaccess only takes effect once published, so it cannot be tested from a local build.

next build emits out/404.html, but the ASF web server never uses it and
answers unknown paths with its own bare "Not Found" body. Add a root
.htaccess setting ErrorDocument, and copy it into out/ alongside
.asf.yaml in both workflows.
@kparisa
kparisa self-requested a review September 3, 2026 07:11
@kparisa
kparisa merged commit 54cf882 into apache:main Sep 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants