SEO with localePrefix: 'never' #1987
-
Hello! I have some SEO questions.
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
From the next-intl docs about
What that means for your SEO questions:
Summary: With |
Beta Was this translation helpful? Give feedback.
-
If you set localePrefix: 'never', that means your URLs will not include locale codes (like /en/ or /fr/). Sitemap URL field → Just use the clean URL without any locale, e.g. https://test.com/example. Alternates in sitemap → Since you’re not prefixing locales, you don’t need alternates for each language. You can either skip the alternates section entirely, or only include if you still serve translated versions under the same URL. Canonical URL → Use the same clean URL, e.g. https://roofing contractors canberra/ |
Beta Was this translation helpful? Give feedback.
From the next-intl docs about
localePrefix: 'never'
:What that means for your SEO questions:
S…