Skip to content

Commit

Permalink
fix: redirect to symfony
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka committed Sep 18, 2024
1 parent 1ea53ad commit 434ef27
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/docker/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ log {
}

@docsroot path_regexp ^/docs(/?)$
redir @docsroot /docs/distribution/
redir @docsroot /docs/symfony/

@withoutTrailingSlash {
path_regexp ^/docs
Expand All @@ -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}

Expand Down

0 comments on commit 434ef27

Please sign in to comment.