From 434ef272205fdcffb8c69f6e580ae9473f8fad32 Mon Sep 17 00:00:00 2001 From: soyuka Date: Wed, 18 Sep 2024 21:01:59 +0200 Subject: [PATCH] fix: redirect to symfony --- api/docker/caddy/Caddyfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/docker/caddy/Caddyfile b/api/docker/caddy/Caddyfile index 71f33273..5ac33a54 100644 --- a/api/docker/caddy/Caddyfile +++ b/api/docker/caddy/Caddyfile @@ -10,7 +10,7 @@ log { } @docsroot path_regexp ^/docs(/?)$ -redir @docsroot /docs/distribution/ +redir @docsroot /docs/symfony/ @withoutTrailingSlash { path_regexp ^/docs @@ -21,9 +21,9 @@ redir @docsroot /docs/distribution/ redir @withoutTrailingSlash {path}/ @version path_regexp version ^/docs/v([^/]+)$ -redir @version /docs/v{re.version.1}/distribution/ +redir @version /docs/v{re.version.1}/symfony/ @version_trailing path_regexp version ^/docs/v([^/]+)/$ -redir @version_trailing /docs/v{re.version.1}/distribution/ +redir @version_trailing /docs/v{re.version.1}/symfony/ @version_current path_regexp path ^/docs/v3\.2/(.*) redir @version_current /docs/{re.path.1}