Skip to content

Commit ecb6ebc

Browse files
authored
fix(seo): make / → /en redirect permanent (301) (#188)
The root redirect was the only entry using `permanent: false` (307 temporary); every other redirect in this file uses 301. Google treats 307 as "don't consolidate canonicals" and kept both / and /en in the index with /en self- canonicalizing — Search Console flagged /en as "Duplicate, Google chose different canonical than user" (chose /). Flipping to permanent: true emits a 308 permanent redirect, letting Google consolidate / and /en to a single indexed URL.
1 parent 60018c8 commit ecb6ebc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vercel.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"cleanUrls": true,
66
"ignoreCommand": "git diff --quiet HEAD^ HEAD -- app/ components/ content/ pages/ public/ scripts/ styles/ theme.config.tsx next.config.mjs proxy.ts package.json vercel.json",
77
"redirects": [
8-
{ "source": "/", "destination": "/en", "permanent": false },
8+
{ "source": "/", "destination": "/en", "permanent": true },
99
{ "source": "/streaming", "destination": "/en/streaming/overview", "permanent": true },
1010
{ "source": "/streaming/overview", "destination": "/en/streaming/overview", "permanent": true },
1111
{ "source": "/streaming/:path*", "destination": "/en/streaming/:path*", "permanent": true },

0 commit comments

Comments
 (0)