Skip to content
Snippets Groups Projects

7728 handle http and https redirects

Merged Hahn Axel (hahn) requested to merge 7728-handle-http-and-https-redirects into master
1 file
+ 4
3
Compare changes
  • Side-by-side
  • Inline
+ 4
3
@@ -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
Loading