N
Nuxt8mo ago
Ivan Ortiz

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?
No description
9 Replies
pyplacca
pyplacca8mo ago
you might find some useful information here
@nuxtjs/i18n
SEO
When the useLocaleHead is called, @nuxtjs/i18n attempts to add some metadata to improve your pages SEO. Here's what it does.
Ivan Ortiz
Ivan OrtizOP8mo ago
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?
pyplacca
pyplacca8mo ago
I was pointing you to what might be causing. I assumed you're using the useLocaleHead composable
Ivan Ortiz
Ivan OrtizOP8mo ago
Yes i'm using it,
No description
Ivan Ortiz
Ivan OrtizOP8mo ago
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.
pyplacca
pyplacca8mo ago
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
pyplacca
pyplacca8mo ago
@nuxtjs/i18n
Ignoring Localized Routes
Customize localized route exclusions per page component.
Ivan Ortiz
Ivan OrtizOP8mo ago
Thanks @pyplacca i'm going to try this.
pyplacca
pyplacca8mo ago
Sure thing
Want results from more Discord servers?
Add your server