From 459f5569341539e5669653944bf13ba3204a2a6f Mon Sep 17 00:00:00 2001 From: Valery Petrov Date: Thu, 28 May 2026 14:01:57 +0300 Subject: [PATCH] issues/27: nginx redirect guides to overview --- infrastructure/test-contour/guides/index.md | 3 --- nginx.conf | 7 +++++++ 2 files changed, 7 insertions(+), 3 deletions(-) delete mode 100644 infrastructure/test-contour/guides/index.md diff --git a/infrastructure/test-contour/guides/index.md b/infrastructure/test-contour/guides/index.md deleted file mode 100644 index b59a01a..0000000 --- a/infrastructure/test-contour/guides/index.md +++ /dev/null @@ -1,3 +0,0 @@ ---- -redirect: /infrastructure/test-contour/guides/overview ---- diff --git a/nginx.conf b/nginx.conf index c8ffc61..8699aec 100644 --- a/nginx.conf +++ b/nginx.conf @@ -5,6 +5,13 @@ server { index index.html; # VitePress cleanUrls: each page is a *.html file on disk + location = /infrastructure/test-contour/guides { + return 301 /infrastructure/test-contour/guides/overview; + } + location = /infrastructure/test-contour/guides/ { + return 301 /infrastructure/test-contour/guides/overview; + } + location / { try_files $uri $uri.html $uri/ $uri/index.html =404; }