Support permanent (308) redirects for default locale #544
Unanswered
jasperhartong
asked this question in
Q&A
Replies: 3 comments 4 replies
-
As far as I know, a 307 should be fine: https://webmasters.stackexchange.com/a/123092 |
Beta Was this translation helpful? Give feedback.
2 replies
-
Any chance to custominze the 3xx status code? My seo experts prefer to have 301 instead |
Beta Was this translation helpful? Give feedback.
0 replies
-
I would really need this possibility to set the redirect status to 308 as well |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
If the middleware is configured to use
localePrefix: "as-needed"
, urls are redirect from/:locale/slug
to/slug
with a 307 Temporary Redirect. From an SEO perspective it might be better to allow these redirects to be performed with a 308 Permanent Redirect.As far as I can tell the middleware doesn't provide a way to configure this behaviour?
Beta Was this translation helpful? Give feedback.
All reactions