Skip to content
Snippets Groups Projects
Commit b657e76f authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

update docs: desribe link entry for regex redirects

parent 537e0e1b
No related branches found
No related tags found
1 merge request!87728 handle http and https redirects
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment