From e2dc43ede9014d00626effc02f1f7599c5e6cefe Mon Sep 17 00:00:00 2001 From: Stefan Bethke Date: Sun, 13 Oct 2024 17:21:57 +0200 Subject: [PATCH] public-web-static: redirect old hackertours 37C3 urls to proper url --- .../virtualHosts/hackertours.hamburg.ccc.de.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config/hosts/public-web-static/virtualHosts/hackertours.hamburg.ccc.de.nix b/config/hosts/public-web-static/virtualHosts/hackertours.hamburg.ccc.de.nix index 14aed40..2077ca7 100644 --- a/config/hosts/public-web-static/virtualHosts/hackertours.hamburg.ccc.de.nix +++ b/config/hosts/public-web-static/virtualHosts/hackertours.hamburg.ccc.de.nix @@ -44,6 +44,11 @@ in { real_ip_header proxy_protocol; error_page 404 /404.html; + + port_in_redirect off; + + rewrite ^/(de|en)/tours$ /$1/37c3 redirect; + rewrite ^/(de|en)/tours/(.*)$ /$1/37c3/$2 redirect; ''; }; };