From a6da6c0f47a85759921757e2616a98613df2f512 Mon Sep 17 00:00:00 2001 From: soyuka Date: Wed, 11 Dec 2024 12:10:06 +0100 Subject: [PATCH] fix: missing redirections --- api/docker/caddy/Caddyfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/docker/caddy/Caddyfile b/api/docker/caddy/Caddyfile index b7050eb4..25647e1f 100644 --- a/api/docker/caddy/Caddyfile +++ b/api/docker/caddy/Caddyfile @@ -12,6 +12,13 @@ log { @distribution path_regexp ^/docs/distribution(?:/?)$ redir @distribution /docs/symfony/ +# note that once 4.1 is out we may need to improve this +@coreToSymfony path_regexp pathMatch ^/docs/core/(controllers|file-upload|fosuser-bundle|messenger|migrate-from-fosrestbundle|nelmio-api-doc|user)(?:/?)$ +redir @coreToSymfony /docs/symfony/{re.pathMatch.1}/ + +@angular path_regexp pathMatch ^/docs/core/angularjs-integration(?:/?)$ +redir @angular /docs/core/client-integration/ + @docsroot path_regexp ^/docs(/?)$ redir @docsroot /docs/symfony/