From b657e76f7823f05530012f05c4080baf1c224b5b Mon Sep 17 00:00:00 2001 From: "Hahn Axel (hahn)" <axel.hahn@unibe.ch> Date: Tue, 14 Jan 2025 10:51:02 +0100 Subject: [PATCH] update docs: desribe link entry for regex redirects --- "docs/30_\342\232\231\357\270\217_Configuration.md" | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git "a/docs/30_\342\232\231\357\270\217_Configuration.md" "b/docs/30_\342\232\231\357\270\217_Configuration.md" index cb6580c..05fa791 100644 --- "a/docs/30_\342\232\231\357\270\217_Configuration.md" +++ "b/docs/30_\342\232\231\357\270\217_Configuration.md" @@ -28,9 +28,9 @@ Let's start with an example for a `redirects_<FQDN>.json`: }, "regex":{ - "^/$": {"code": 307, "target": "https://www.iml.unibe.ch" }, - "^/ax.l.*": {"code": 307, "target": "https://www.axel-hahn.de" }, - ".*": {"code": 301, "target": "https://www2.example.com" } + "^/$": {"code": 307, "target": "https://www.iml.unibe.ch", "link": "/" }, + "^/ax.l.*": {"code": 307, "target": "https://www.axel-hahn.de", "link": "/axelhahn" }, + ".*": {"code": 301, "target": "https://www2.example.com", "link": "/testme" } } } ``` @@ -72,6 +72,7 @@ Both redirect section contain a redirect definition * code - http status code for redirection * target - target url of the redirect +* link - optional, for regex only: set a path for a test link Status codes -- GitLab