Added regex option to forward rules

This commit is contained in:
2026-03-31 12:45:56 +02:00
parent 55348057a0
commit dcc8201099
3 changed files with 49 additions and 13 deletions
+9 -2
View File
@@ -12,9 +12,16 @@ sites:
- source: /npm
destination: https://www.npmjs.com/package/my-lib
status_code: 302
- source: /github
destination: https://github.com/yourname/my-lib
- source: ^/docs/v(\d+)$
destination: https://v$1.docs.my-lib.com/
status_code: 301
regex: true
- source: ^/blog/(?P<slug>[^/]+)$
destination: /posts/${slug}
status_code: 302
regex: true
- repo: portfolio
owner: yourname