inital-release

This commit is contained in:
mike
2025-12-16 14:29:38 +01:00
parent 05f9b5fd19
commit f545b1f278

View File

@@ -10,9 +10,14 @@ server {
try_files $uri $uri.html $uri/ =404;
}
# Optional: Redirect .html URLs to clean URLs
if ($request_uri ~ ^/(.*)\.html(\?|$)) {
return 301 /$1$2;
# Don't redirect mobile.html to allow device-specific routing
# Skip the .html redirect for mobile.html and index.html
location = /mobile.html {
try_files /mobile.html =404;
}
location = /index.html {
try_files /index.html =404;
}
# Gzip compression for better performance