From 72ee569730abf8063d86d308ad7050f258750281 Mon Sep 17 00:00:00 2001
From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch>
Date: Thu, 3 Oct 2024 17:12:11 +0200
Subject: [PATCH] update config dist files

---
 config/aliases.json.dist              | 2 +-
 config/redirects_www.example.com.json | 9 +++++++++
 2 files changed, 10 insertions(+), 1 deletion(-)
 create mode 100644 config/redirects_www.example.com.json

diff --git a/config/aliases.json.dist b/config/aliases.json.dist
index 8c8e976..6473bd2 100644
--- a/config/aliases.json.dist
+++ b/config/aliases.json.dist
@@ -1,3 +1,3 @@
 {
-    "sub.domain.example.com": "domain.example.com"            
+    "sub.domain.example.com": "www.example.com"            
 }
\ No newline at end of file
diff --git a/config/redirects_www.example.com.json b/config/redirects_www.example.com.json
new file mode 100644
index 0000000..83d3db0
--- /dev/null
+++ b/config/redirects_www.example.com.json
@@ -0,0 +1,9 @@
+{
+    "comment": "Example redirect configuration file for domain.example.com",
+    "direct":{
+        "/mail": {"code": 301, "target": "https://www.example.com/webmail" }
+    },
+    "regex":{
+        ".*":   {"code": 307, "target": "https://www.example.com/" }
+    }
+}
-- 
GitLab