Added regex option to forward rules
This commit is contained in:
+9
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user