diff --git a/content/codeberg-pages/advanced-usage.md b/content/codeberg-pages/advanced-usage.md index 461a1dd..c5f9596 100644 --- a/content/codeberg-pages/advanced-usage.md +++ b/content/codeberg-pages/advanced-usage.md @@ -63,4 +63,10 @@ Redirects every path under `/articles` to `/posts` while keeping the path. /articles/* /posts/:splat 302 ``` +{% admonition "Warning" %} + +`:splat` should always be the last element of the path, so something like `/*/ /:splat.html` is not a valid rule. + +{% endadmonition %} + Example: `/articles/2022/10/12/post-1/` → `/posts/2022/10/12/post-1/`