From eff0e7e6a8db89796a2606b802392e3a61148056 Mon Sep 17 00:00:00 2001 From: Ihor_Zhekov Date: Mon, 9 Feb 2026 13:36:30 +0000 Subject: [PATCH] Update vhost.conf --- vhost.conf | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/vhost.conf b/vhost.conf index 444cdf4..55ec683 100644 --- a/vhost.conf +++ b/vhost.conf @@ -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; } \ No newline at end of file