How to Redesign an Agency or Business Website in Next.js Without Losing Google Rankings
A step-by-step technical SEO migration checklist covering URL mapping, 301 redirects, and JSON-LD schema.
Saddam Kathat
Founder & Lead Full-Stack Engineer
Executive Summary & Key Takeaways
- Export every indexed URL from Google Search Console and your existing sitemap before deploying the new Next.js build.
- Configure permanent 301 redirects in next.config.ts for every legacy route whose slug changed.
- Use Next.js App Router Metadata API and JSON-LD structured data to clarify business location and service offerings.
1. Audit & Map Every Legacy URL Before Launch
Before pointing your domain to a new Next.js deployment, list every live HTML, PHP, or WordPress slug currently indexed by Google. If your old site used /web-development.html and your new Next.js route is /services/custom-web-saas-development, returning a 404 Not Found error forces search engines to drop that page's authority.
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
async redirects() {
return [
{
source: "/web-development.html",
destination: "/services/custom-web-saas-development",
permanent: true, // Sends HTTP 308/301 permanent redirect
},
];
},
};
export default nextConfig;2. Align Metadata, Canonical Tags & Local Signals
Set metadataBase in your root layout so OpenGraph images and canonical URLs resolve cleanly to your primary domain. Combine fast server-rendered pages with clear service headings and verifiable regional presence so search engines index your company accurately.
Need Implementation Help?
Technical SEO & Performance Engineering
Structured metadata, schema markup, page speed optimization, and local search architecture to capture high-intent organic leads.
