fix(nginx): switch from HTML to XHTML rewrites
This commit is contained in:
parent
9040c1377f
commit
5b536fe275
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user