Skip to content

Commit

Permalink
website: add more imprint redirects
Browse files Browse the repository at this point in the history
  • Loading branch information
noxilixon committed Aug 27, 2024
1 parent a9c4063 commit ef84174
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions templates/Caddyfile_website.j2
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ berlin.freifunk.net {
redir /download /de/downloads/ 301
redir /participate/ /de/participate/ 301
redir /p /de/participate/ 301
redir /impressum /de/impressum/ 301
redir /impressum /de/imprint/ 301
redir /en/imprint/ /de/imprint/ 301
redir /wiki /de/wiki/ 301
redir /meshwiki /de/wiki/ 301

Expand Down Expand Up @@ -99,10 +100,10 @@ freifunk.dev {
}
redir @participate /{re.branch.1}/de/participate/ 301

@impressum {
path_regexp branch ^\/([[:alnum:]]+)\/impressum
@imprint {
path_regexp branch ^\/([[:alnum:]]+)\/(impressum|en\/imprint\/)
}
redir @impressum /{re.branch.1}/de/impressum/ 301
redir @imprint /{re.branch.1}/de/imprint/ 301

@wiki {
path_regexp branch ^\/([[:alnum:]]+)\/(meshwiki|wiki)
Expand Down

0 comments on commit ef84174

Please sign in to comment.