Skip to content

Commit

Permalink
fix: redirections
Browse files Browse the repository at this point in the history
  • Loading branch information
dunglas committed Sep 18, 2024
1 parent 434ef27 commit 7c1497a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions api/docker/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ redir @docsroot /docs/symfony/

redir @withoutTrailingSlash {path}/

@version path_regexp version ^/docs/v([^/]+)$
@versionold path_regexp version ^/docs/v(2\.\d|3\.[123])/?$
redir @versionold /docs/v{re.version.1}/distribution/

@version path_regexp version ^/docs/v([^/]+)/?$
redir @version /docs/v{re.version.1}/symfony/
@version_trailing path_regexp version ^/docs/v([^/]+)/$
redir @version_trailing /docs/v{re.version.1}/symfony/
@version_current path_regexp path ^/docs/v3\.2/(.*)

@version_current path_regexp path ^/docs/v4\.0/(.*)
redir @version_current /docs/{re.path.1}

@withoutExtension not path_regexp \.\w+$
Expand Down

0 comments on commit 7c1497a

Please sign in to comment.