Next.js Discord

Discord Forum

Search Engines won't see the default locale pages in next-intl?

Unanswered
Prothonotary Warbler posted this in #help-forum
Open in Discord
Prothonotary WarblerOP
Let's say my default locale is "ar", its path is here "/*". Another locale is "en", its path is here "/en/*". When someone with header Accept-Language: en navigates to "/", the default behavior of next-intl is to redirect him to "/en". Now, what about SEO? Do crawlers have Accept-Language set to anything or is it empty? If it is set to english for example, isn't this horrible for SEO? Crawlers will never see my "ar" pages, they will always be redirected to english

1 Reply

Prothonotary WarblerOP
Also, can I change next-intl config so the priority is: Cookie -> Path, and make it never relies on Accept-Language? I find it bad for users to navigate to / and get redirected to /en just because their language preference is english.