diff --git a/nuxt.config.ts b/nuxt.config.ts index 0a6dc7f..53046fb 100644 --- a/nuxt.config.ts +++ b/nuxt.config.ts @@ -118,6 +118,14 @@ export default defineNuxtConfig({ crawlLinks: true, failOnError: false, //routes: ['/', '/webagency'] // Wichtige Routen vorrendern , '/impressum', '/datenschutz' + }, + routeRules: { + '/wissenswertes': { redirect: '/magazin', statusCode: 301 }, + // Dauerhafte 301-Weiterleitung mit Wildcard + '/wissenswertes/artikel/**': { + redirect: to => to.replace(/^\/wissenswertes\/artikel/, '/artikel'), + statusCode: 301 + } } } })