Technical

301 Redirect

A 301 redirect is an HTTP status code that permanently redirects one URL to another, telling search engines to transfer ranking signals (link equity) to the new URL.

Use 301 redirects when you permanently move or rename a page, merge duplicate content, change your URL structure, or migrate domains. A 301 passes approximately 95-99% of link equity to the target URL.

Avoid redirect chains (A -> B -> C) as each hop loses a small amount of equity and increases load time. Also avoid redirect loops (A -> B -> A), which make pages inaccessible.

In Next.js, configure redirects in `next.config.js` using the `redirects` option. For dynamic redirects, use middleware or the `redirect()` function from `next/navigation`.

Example

// next.config.js
module.exports = {
  async redirects() {
    return [
      {
        source: "/old-page",
        destination: "/new-page",
        permanent: true, // 301
      },
    ];
  },
};

Stop shipping broken SEO

Indxel validates your metadata, guards your CI/CD pipeline, and monitors indexation — so you never miss an SEO issue again.