This commit is contained in:
2026-02-09 14:31:51 +01:00
parent 5e75a7c2d6
commit a6c2e8681d
2 changed files with 16 additions and 5 deletions

15
vhost.conf Normal file
View File

@@ -0,0 +1,15 @@
index index.html index.php;
location / {
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;
}