Add .htaccess to rewrite URLs without .html extension
All checks were successful
Publish to Server / Deploy (push) Successful in 43s

Signed-off-by: Alexander Davis <alex@adcm.uk>
This commit is contained in:
2025-12-14 13:22:27 +00:00
parent 33fd3595ea
commit 9188b796fc

9
Export/.htaccess Normal file
View File

@@ -0,0 +1,9 @@
RewriteEngine on
RewriteCond %{THE_REQUEST} /([^.]+)\.html [NC]
RewriteRule ^ /%1 [NC,L,R]
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^ %{REQUEST_URI}.html [NC,L]