i18n: Getting ERROR 404 on Google search console
Version
Steps to reproduce
['nuxt-i18n', {
parsePages: false,
locales: ['es'],
strategy: 'prefix',
detectBrowserLanguage: {
useCookie: true,
cookieKey: 'i18n_redirected',
alwaysRedirect: true,
fallbackLocale: 'es'
},
vueI18n: {
messages: {
'es': require('./locales/es.json')
}
}
}],
Here is my nuxt-i18n configuration.
What is expected ?
Redirect to /es as it is the only one available language.
What is actually happening?
Google Search Console is telling me that I have an ERROR 404 in / when crawling data from my website

Additional comments?
I have no problem entering the webpage, but my website is not being indexed by Google on their Search Engine because of this.
<div align="right">This bug report is available on Nuxt community (#c323)</div>About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 2
- Comments: 17
Commits related to this issue
- fix: redirect from 404 to defaultLocale if there is matching route Changes the `setLocale` logic to, in case current route is 404, to try to find a matching one for current locale. This is for situat... — committed to nuxt-modules/i18n by rchl 4 years ago
- fix: redirect from 404 to defaultLocale if there is matching route Changes the `setLocale` logic to, in case current route is 404, to try to find a matching one for current locale. This is for situat... — committed to nuxt-modules/i18n by rchl 4 years ago
This specific case (configuration posted in the initial comment) appears to have been fixed by #510.
Thanks a lot. I can see the problem now and will look into it.
You’re right. I’ll have a look at what might be a problem with
prefixstrategy.