Skip to content

Commit

Permalink
update redirections (#513)
Browse files Browse the repository at this point in the history
  • Loading branch information
soyuka authored Nov 23, 2023
1 parent e7ed8c2 commit 8ca5f37
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions api/docker/caddy/Caddyfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,15 @@ log {
@docsroot path_regexp ^/docs(/?)$
redir @docsroot /docs/distribution/

@version path_regexp version (/docs/[^/]+)$
redir @version {re.version.1}/distribution
@withoutTrailingSlash {
not path_regexp ^/docs/.*/$
not path_regexp \.\w+$
}

redir @withoutTrailingSlash {path}/

@version path_regexp version ^/docs/v([^/]+)/$
redir @version /docs/v{re.version.1}/distribution/

@withoutExtension not path_regexp \.\w+$
@withTld path_regexp \.(org|io|fr|com|pl|me|de|gg|dev)$
Expand Down

0 comments on commit 8ca5f37

Please sign in to comment.