Apache & Nginx
Zudoku generates static HTML files for each page during build. Your server must be configured to serve these files correctly.
Apache
Create a .htaccess file in your document root (alongside index.html):
Code
Requires mod_rewrite enabled and AllowOverride All in your Apache configuration. Unknown paths
fall through to Apache's real 404 response, using Zudoku's generated 404.html as the response
body.
Nginx
Add a try_files directive to your server block:
Code
Do not fall back unknown paths to index.html; that produces a soft 404 with status 200, which
misleads search engines and agents into treating nonexistent pages as real content.
These examples serve the generated .md files at their explicit URLs but do not inspect the
Accept header. To serve Markdown from canonical documentation URLs, implement the general
content-negotiation contract in your web server
or an upstream proxy.