i18n: How hide some static pages from hreflang
We have a big site and some of the corporate pages need to be removed from the hreflang
We create this page on nuxt config:
'club/index': {
ca: '/club',
es: '/club',
mx: '/club',
en: '/club',
'en-ca': '/club',
us: '/club', de: '/club', nl: '/club', fr: '/club', it: '/club', ru: '/club', pt: '/club', pl: '/club', }, But i18n is creating this hreflang from the image: As you can see it is created in no club langs like ar-DZ and zh-CN (at this moment). Someone can give us a tip with this static pages? how to hide them for seo?
us: '/club', de: '/club', nl: '/club', fr: '/club', it: '/club', ru: '/club', pt: '/club', pl: '/club', }, But i18n is creating this hreflang from the image: As you can see it is created in no club langs like ar-DZ and zh-CN (at this moment). Someone can give us a tip with this static pages? how to hide them for seo?
9 Replies
Hi @pyplacca I really don't find nothing in this link. How can hide static pages from SEO if they are not defined in nuxt config?
I was pointing you to what might be causing. I assumed you're using the useLocaleHead composable
Yes i'm using it,
I only want to hide some of the languages from the hreflangs. Not every language/market has some parts of the site and we need to hide this to Google without redirections or 404.
hmm, I'm not sure what solution can achieve that using nuxt i18n, but u can try relying on a generated sitemap of your site
with that, u have a little bit of control as to what you want to present to Google's crawler bot
it seems there is, @Ivan Ortiz
https://i18n.nuxtjs.org/docs/guide/ignoring-localized-routes#pick-localized-routes
Thanks @pyplacca i'm going to try this.
Sure thing