Update vhost.conf

This commit is contained in:
2026-02-09 13:36:30 +00:00
parent a6c2e8681d
commit eff0e7e6a8

View File

@@ -1,15 +1,21 @@
index index.html index.php;
location / {
if ($request_uri ~ ^/sites/(.*)$ ) {
return 301 /$1;
}
if ($request_uri ~ ^/index(\.html)?$) {
return 301 /;
}
if ($request_uri ~ ^/(.*)\.html$) {
return 301 /$1;
}
try_files $uri $uri/ $uri.html /sites$uri /sites$uri.html /index.php?$query_string;
}