docs site: landing page, htaccess in the build output

This commit is contained in:
Andy Dixon
2026-07-08 21:42:40 +01:00
parent 67a825a995
commit 6f3322f1ba
3 changed files with 91 additions and 21 deletions
+18
View File
@@ -0,0 +1,18 @@
DirectoryIndex index.html
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /noema/
# One canonical URL per page: the index at the directory, pages without an
# extension. The .html and trailing-slash forms redirect.
RewriteRule ^index\.html$ /noema/ [R=301,L]
RewriteCond %{THE_REQUEST} \s/+noema/([a-z0-9-]+)\.html(?:[?\s]|$) [NC]
RewriteRule ^([a-z0-9-]+)\.html$ /noema/$1 [R=301,L]
RewriteRule ^([a-z0-9-]+)/$ /noema/$1 [R=301,L]
# Serve pages from their .html files.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^([a-z0-9-]+)$ $1.html [L]
</IfModule>