Closed oussamalkd closed 1 year ago
I have made a website using NUXT that needs SEO
When I use www.XML-sitemaps.com website to see if it can find all my pages, it only finds the home page and none of the other routes.
My robots.txt file looks like this:
robots: { UserAgent: '*', Disallow: '' },
I am using @nuxtjs/sitemap to generate the sitemap.xml.
my nuxt.config.js looks like:
export default { // Target: https://go.nuxtjs.dev/config-target target: 'static', // Global page headers: https://go.nuxtjs.dev/config-head head: { title: 'talk-to-target, meta: [ { charset: 'utf-8' }, { name: 'viewport', content: 'width=device-width, initial-scale=1' }, { hid: 'description', name: 'description', content: '' }, { name: 'format-detection', content: 'telephone=no' } ], link: [ { rel: 'icon', type: 'image/x-icon', href: '/favicon.ico' } ] }, // Global CSS: https://go.nuxtjs.dev/config-css css: [ '~/assets/CSS/app.scss' ], // Plugins to run before rendering page: https://go.nuxtjs.dev/config-plugins plugins: [ ], // Auto import components: https://go.nuxtjs.dev/config-components components: true, // Modules for dev and build (recommended): https://go.nuxtjs.dev/config-modules buildModules: [ // https://go.nuxtjs.dev/typescript '@nuxt/typescript-build', // https://go.nuxtjs.dev/stylelint '@nuxtjs/stylelint-module' ], // Modules: https://go.nuxtjs.dev/config-modules modules: [ 'bootstrap-vue/nuxt', '@nuxtjs/axios', '@nuxtjs/pwa', 'nuxt-lazy-load', '@nuxtjs/robots', '@nuxtjs/sitemap' ], robots: { UserAgent: '*', Disallow: '' }, sitemap: { generate: true, hostname: 'https://talktotarget.beter.in/', gzip: true }, // Axios module configuration: https://go.nuxtjs.dev/config-axios axios: { baseURL: '/' }, // PWA module configuration: https://go.nuxtjs.dev/pwa pwa: { manifest: { lang: 'en' } }, // Build Configuration: https://go.nuxtjs.dev/config-build build: { standalone: true } }
Result on xml-sitemaps:
in my case. later.. I noticed that the website doesn't have internal links. that's why it only finds the home page and not of a sitemap issue
I have made a website using NUXT that needs SEO
When I use www.XML-sitemaps.com website to see if it can find all my pages, it only finds the home page and none of the other routes.
My robots.txt file looks like this:
I am using @nuxtjs/sitemap to generate the sitemap.xml.
my nuxt.config.js looks like:
Result on xml-sitemaps: