Skip to content

Commit

Permalink
docs: Fix documentation for key rewrite feature
Browse files Browse the repository at this point in the history
Related to #441
  • Loading branch information
oxyno-zeta committed May 12, 2024
1 parent 8f1e39b commit 334da50
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/feature-guide/key-rewrite.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,15 @@ targets:
- name: test
# ...
keyRewriteList:
- source: ^/file.html$
target: /redirected/file.html
- source: ^/folder1/file.html$
target: /folder1/redirected/file.html
bucket:
# ...
prefix: "/folder1"
```

The bucket prefix is in fact added before any key rewrite list item matching.

The S3 key result of this request will be : `/folder1/redirected/file.html`.

### Simple target as Golang template
Expand Down

0 comments on commit 334da50

Please sign in to comment.