301 Redirect

1.Add the @nuxtjs/redirect-module dependency with yarn or npm to your project
2.Add @nuxtjs/redirect-module to the modules section of nuxt.config.js:
Configure it:
      {
  modules: [
    ['@nuxtjs/redirect-module', {
      // Redirect option here
    }]
  ]
}
  
      {
  modules: [
    '@nuxtjs/redirect-module'
  ],
  redirect: [
    { from: '^/myoldurl', to: '/mynewurl', statusCode: 301 }
  ]
}