fix(nginx): switch from HTML to XHTML rewrites

This commit is contained in:
inference 2025-06-28 20:49:49 +00:00
parent 9040c1377f
commit 5b536fe275
Signed by: inference
SSH Key Fingerprint: SHA256:/O3c09/4f1lh4zrhFs2qvQEDda6dZbTwG9xEcj8OfWo

View File

@ -1,6 +1,6 @@
# Inferencium - xb-00-01
# Nginx - Configuration - Website
# Version: 10.0.0-alpha.6
# Version: 10.0.0-alpha.7
# Copyright 2022 Jake Winters
# SPDX-License-Identifier: BSD-3-Clause
@ -35,9 +35,9 @@ server {
# Location
location / {
root /srv/www/inferencium;
index index.html;
try_files $uri.html $uri $uri/ =404;
rewrite ^(/.*)\.html(\?.*)?$ $1$2 permanent;
index index.xhtml;
try_files $uri.xhtml $uri $uri/ =404;
rewrite ^(/.*)\.xhtml(\?.*)?$ $1$2 permanent;
rewrite ^/(.*)/$ /$1 permanent;
}