A page has permanently moved to its close replacement
- Use
- Permanent server-side 301 or 308
- Follow-up
- Update internal links, canonical, and sitemap to the destination
Configure Nuxt routeRules redirects, choose the right status, and test the production response across your rendering and hosting setup.
Define known URL moves in Nuxt's routeRules and set an explicit status code: 301 or 308 for a permanent move, 302 or 307 for a temporary one. Nitro and static hosts handle rules differently, so request the deployed old URL and verify its HTTP status and Location header.
Four quick questions, then a straight answer.
From your answers, this is quietly costing you traffic and nobody has the hours to chase it. Scaplet finds every affected page, drafts the fixes and tracks how AI answers mention you.
A data platform shipped 46 fixes without a ticket.
This looks handled. Re-check after a redesign, a migration or a big content push; that is when it breaks.
Your site is small and you have the time. Work through the steps on this page, starting with the pages that get the most traffic.
nuxt.config.ts and applied by Nitro to matching routes. The redirect rule accepts a destination and a status code. Nitro documents that a string value such as redirect: '/new-page' uses 307 (Temporary Redirect), so set the code explicitly for a permanent move. Nuxt's configuration reference marks routeRules as experimental, so recheck the behavior after Nuxt upgrades.'/old-page/**': { redirect: '/new-page/**' }. Use exact route mappings for a manageable set of URLs. For broad or data-driven migrations, generate rules from a reviewed mapping or use redirect support at the CDN or host.export default defineNuxtConfig({
routeRules: {
'/old-product': {
redirect: { to: '/products/current', statusCode: 301 }
},
'/preview-path': {
redirect: { to: '/new-preview', statusCode: 302 }
}
}
})Use the same Nuxt/Nitro preset and adapter as production. A route rule may be handled differently by a server runtime, prerendered output, or static host.
Inspect the old URL's HTTP status and Location header with a GET request. A client-side route transition can look correct in a browser while the first HTTP response still serves the old route.
Confirm the destination returns the intended page, remains on the canonical host, and does not redirect again. Test query strings, trailing slashes, and any important encoded paths.
For a dynamic route, test representative product or article slugs, not just one hard-coded example. Verify no matching Nuxt page or catch-all route is taking precedence unexpectedly.
Google lists 301 and 308 as permanent redirects and 302, 303, and 307 as temporary ones, and says a server-side redirect has the highest chance of being interpreted correctly. See Nuxt's routeRules configuration, Google's redirect guidance, and our redirect chains diagnostic.
3 questions people ask next, answered from the sources on this page.
Add a route rule in nuxt.config.ts with a destination and explicit statusCode: 301, then deploy with a server or host that supports the rule. Request the public old URL to verify the actual status and destination.
Your production preset or static host may handle redirects differently from the development server. Confirm the generated output and configure the host or CDN when it does not serve HTTP redirects itself.
Only if the homepage is a genuinely relevant replacement. Otherwise return a 404 or 410; sending unrelated deleted URLs to the homepage can mislead visitors and search engines.
Run the free audit, then approve the fixes. Every change can be undone.