We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc7fa85 commit c5b6d0dCopy full SHA for c5b6d0d
1 file changed
website-next/nginx/conf.d/redirects.conf
@@ -8,6 +8,12 @@
8
# * use `rewrite ... redirect` for 302 redirects
9
# * group related rules with a short comment
10
11
+# Always strip trailing slashes. The static export uses non-slash URLs
12
+# (`trailingSlash: false`), so any path with a trailing slash 404s. Running
13
+# this first canonicalizes the path so every later rule and the file lookup
14
+# operate on the slash-free form (the root `/` is left untouched).
15
+rewrite ^/(.+)/$ /$1 permanent;
16
+
17
# temporary redirects
18
rewrite ^/platform/bananacakepop/?$ /products/nitro redirect;
19
rewrite ^/products/hotchocolate/?$ /docs/hotchocolate redirect;
0 commit comments