Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions website-next/nginx/conf.d/redirects.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
# * use `rewrite ... redirect` for 302 redirects
# * group related rules with a short comment

# Always strip trailing slashes. The static export uses non-slash URLs
# (`trailingSlash: false`), so any path with a trailing slash 404s. Running
# this first canonicalizes the path so every later rule and the file lookup
# operate on the slash-free form (the root `/` is left untouched).
rewrite ^/(.+)/$ /$1 permanent;
Comment on lines +11 to +15

# temporary redirects
rewrite ^/platform/bananacakepop/?$ /products/nitro redirect;
rewrite ^/products/hotchocolate/?$ /docs/hotchocolate redirect;
Expand Down
Loading