Skip to content

Retiring Old Portfolio Pages: When to Redirect, When to Return 404, and What Not to Noindex

A rebuild leaves old case studies and service pages behind. Each one needs a deliberate ending: a redirect to a real equivalent, an honest 404 or 410, a noindex on a page that's still useful, or real access control. A decision table, with key status behaviour reproduced on a local synthetic Next.js build.

Four pencilled doors represent Equivalent, Retired, Public and Restricted pages, labelled 301/308, 404/410, noindex and AUTH.
A purpose-based map sends true equivalents to 301/308, retired pages without successors to 404/410, useful public pages to crawlable noindex, and restricted content to real access control.
Status examples observed on a local synthetic build; 301/403 are documented, not demonstrated. No real-site runtime or search-engine classification was verified.

Text equivalent. URL retirement Teaching diagram • Redirect, retire, unlist or protect Classify the page Purpose first, not “avoid 404” True equivalent replacement 301 / 308 > that equivalent Retired; no successor 404 / 410; helpful not-found page Useful public; not for search 200 + noindex; keep crawlable Restricted tool or content Real authentication + authorisation No generic hub redirect to hide a 404. Robots/noindex are not security. Streaming caveat notFound() behind a loading boundary can return 200 + noindex; may be classified as a soft 404. Status examples observed on a local synthetic build; 301/403 documented, not demonstrated. No live-site tests.

Full-size diagram

Every site rebuild leaves pages behind: case studies for work you no longer show, service pages for offers you've folded into others, one-off guides, internal preview tools that were never meant to be public. The tempting fix is one rule for all of them, usually "redirect everything to the homepage" or "noindex everything old".

One rule doesn't fit, because those pages end for different reasons. The right response depends on what the page is for now:

  • Is there a real replacement?
  • Is it gone on purpose?
  • Is it still useful to visitors, just not something you want in search?
  • Is it something that shouldn't be public at all?

This article gives a decision table for that question, the HTTP behaviour behind each answer, and the traps that make a correct-looking choice fail. The observed results come from a small synthetic Next.js app built locally in production mode, listed in What was tested. Other codes mentioned along the way (301, 307, 403) are described from documentation, not demonstrated. Nothing was tested against a live site or hosting platform.

The decision table

Page situationResponseTargetWhy
Actual equivalent replacement exists (renamed case study, merged service page that covers the same thing)Permanent redirect: 301 or 308The equivalent pageVisitors and links land on the content they wanted
Intentionally retired, no successor404, or 410 if you want to say "removed on purpose"None. Serve a helpful not-found pageHonest: the content is gone
No real equivalent, but a hub existsUsually 404/410, not a redirect to the hub or home—A redirect to something unrelated sends people somewhere they didn't ask to go
Useful public content that shouldn't appear in search (print version, campaign-only page, thin utility page)200 + noindex, and leave it crawlableItselfnoindex only works if crawlers can fetch the page and see it
Genuinely restricted tool (admin, internal preview, staff-only report)Real authentication or access control (e.g. 401/403 behind a login)—robots.txt and noindex are instructions to crawlers, not security

Two rules sit behind the table:

  1. Never prescribe 404 for something that's still useful. If a tool is used internally, protect it. Don't break it in public and hope nobody needs it.
  2. Don't redirect just to avoid a 404. A 404 for a page that really is gone is a correct answer, not an error to hide.

Redirect only to a real equivalent

A permanent redirect says "this content now lives over there". That's true when a case study moved to a new slug, or two service pages were merged into one that covers both. It isn't true when the old page described a project you no longer show and the "target" is your work index.

301 and 308. Google's documentation on how HTTP status codes affect its crawlers lists 308 (moved permanently) as "Equivalent to 301." It adds that although Google treats them the same, they're semantically different, and you should use the one that fits so other clients benefit. Google's redirects guide lists both under permanent server-side redirects.

In Next.js, a redirect in next.config with permanent: true uses 308. From the Next.js redirects reference: "if true will use the 308 status code which instructs clients/search engines to cache the redirect forever, if false will use the 307 status code which is temporary and is not cached."

js
// next.config.mjs — synthetic example
export default {
  async redirects() {
    return [
      // The case study moved; /work/new-case is the same project, rewritten.
      { source: '/work/old-case', destination: '/work/new-case', permanent: true },
    ];
  },
};

On the local production build this returned HTTP/1.1 308 Permanent Redirect with location: /work/new-case.

"Cache the redirect forever" is the practical warning. A permanent redirect can stick in browsers and other clients. Don't make one permanent until you're sure about the target.

Choosing the target: nearest equivalent vs hub

TargetWhen it's rightTradeoff
Nearest equivalent pageThe new page covers the same project, service or questionBest for visitors and links; needs a real match for each old URL
Category hub (e.g. /work)Only when the hub genuinely answers what the old page answered, such as an old "all projects" pageIf used for unrelated pages, visitors land on a list instead of the thing they wanted
HomepageAlmost neverTells the visitor nothing about what happened to the page

Whether a hub redirect keeps any value in search is Google's call, and this article doesn't claim a traffic outcome either way. The visitor test is simpler: would someone who clicked the old link agree the destination is what they were after?

An example from this site's source: retired case pages

This site's source code shows both kinds of choice, and they're useful to look at honestly. What follows is read from the source at one pinned commit (7bbe77f). It describes what that code configures, not what the live site returns today, which wasn't checked. The source repository is private, so the file references below are attribution, not links you can open.

Retired case studies → /work. The pinned source at 7bbe77f configures permanent redirects from six removed case-study URLs to the work index (private site source: next.config.mjs lines 4–12 at commit 7bbe77f):

Old URLConfigured target
/work/kazhe-ecommerce-rebuild/work (permanent: true)
/work/codinchi-startup-website/work
/work/celinesurgery-seo-branding/work
/work/fitplast-cosmetic-seo-platform/work
/work/harmony-beauty-clinic-platform/work
/work/shokotopia-ecommerce-platform/work

That's an implementation choice in this site's source, not a recipe. None of those projects has a successor page, so by the table above the stricter answer would be a 404 or 410 for each, or a short "this project is no longer featured" page. The redirect keeps old links landing somewhere on the portfolio. The cost is that a visitor looking for one specific project gets a list without being told it was removed. If you're making the same decision, that's the tradeoff to weigh. (The synthetic app showed that permanent: true produces a 308 in Next.js 16.4.5. That doesn't verify what these six real URLs return in production. Hosting or later code changes could differ, and they weren't requested.)

Render routes → not-found in production builds. The same pinned source has two internal render routes (/astra-render, /studio-render) used during development. For production, it configures a rewrite of both to a path with no route, so they're meant to get the framework's not-found page, and it marks the pages noindex (private site source: next.config.mjs lines 22–32 at commit 7bbe77f). The code comment there reports why: calling notFound() alone had produced a 200, which it calls a soft 404, because of a root loading boundary. That explanation is the comment's. This article didn't run the site's code. Separately, the synthetic app below reproduced the same general mechanism: notFound() behind a loading boundary returned 200. That's consistent with the comment, but it doesn't prove what those two real routes return.

It's a choice for routes that are only needed in development on that site. It's not advice to 404 any tool someone still uses. A tool that's still needed in production should sit behind access control (see below).

404 or 410 for pages that are really gone

When a page is retired with no successor, return a not-found status and a helpful page: say the content was removed, link to the current work or services, and offer search or contact.

Google's status-code page says it doesn't index URLs that return a 4xx status code, and that URLs already indexed are removed. It also says "All 4xx errors, except 429, are treated the same," so for Google the choice between 404 and 410 isn't a ranking lever. 410 Gone tells any client the removal was intentional. 404 says only that nothing is there now. Pick by meaning.

In Next.js, a route handler can return 410 explicitly:

ts
// app/work/gone-case/route.ts — synthetic example
export function GET() {
  return new Response(
    '<!doctype html><title>Gone</title><h1>This case study was retired.</h1><p><a href="/work">See current work</a></p>',
    { status: 410, headers: { 'content-type': 'text/html; charset=utf-8' } },
  );
}

Locally this returned HTTP/1.1 410 Gone. A URL with no matching route returned 404 Not Found with <meta name="robots" content="noindex"/> in the page.

The soft-404 trap

A 200 response showing missing content can be classified as a soft 404. Google's status-code page says that if a 2xx page's content "suggests an error … an empty page or an error message, Search Console will show a soft 404 error." That's Google's classification, made on its side. Not every 200 page with an error message is guaranteed to be labelled that way, and no local test can show what Search Console will report.

In Next.js App Router a missing page can return 200 without anyone writing a 200 by hand. The Next.js loading.js reference explains: "Streaming page responses begin with a 200 status code. The initial response headers set the status for the rest of the response." If a page streams behind a loading boundary and then calls notFound(), the status is already 200. The docs say Next.js adds a robots noindex meta tag to such streamed 404 pages, and that "Some crawlers may label these responses as “soft 404s”." To get a real 404, 403 or 401, they recommend running the check before streaming starts.

The local synthetic build showed both status outcomes with the same page logic. It shows the status and meta tag, not how any search engine classified them:

Route in the synthetic appLoading boundary?StatusRobots meta
/hard/missing (notFound() after an await)No404noindex
/soft/missing (same code + loading.tsx)Yes200noindex

Practical fixes, depending on your app:

  • Check whether the record exists before streaming starts: for example in middleware/Proxy (rewrite unknown slugs to a not-found route, as the Next.js docs suggest), with a fixed set of pre-generated pages, or in a route without a loading boundary above it. Only the "no loading boundary" variant was tested for this article, so confirm whichever you pick with the check below.
  • After any change, check the actual status of a known-missing URL on a production build: curl -sI http://localhost:3000/work/does-not-exist against next start (adjust host and port). Don't infer it from what the page shows.

Noindex: for useful public pages, and only if crawlable

noindex is right when a page should stay available to people but stay out of search: a printable version of a guide, a campaign landing page you share directly, a thank-you page.

The trap is pairing it with a robots.txt block. Google's noindex documentation is explicit: "For the noindex rule to be effective, the page or resource must not be blocked by a robots.txt file, and it has to be otherwise accessible to the crawler. If the page is blocked by a robots.txt file or the crawler can't access the page, the crawler will never see the noindex rule, and the page can still appear in search results."

So for a noindex page:

  • Do leave it crawlable and return 200 with <meta name="robots" content="noindex"> or an X-Robots-Tag: noindex header. The header also works for PDFs and images.
  • Don't add a Disallow for it in robots.txt.
  • follow is optional. Following links is already the default when no nofollow is given, and follow isn't a promise that a search engine will keep crawling the page's links. The synthetic printable page used robots: { index: false, follow: true } in Next.js metadata and rendered <meta name="robots" content="noindex, follow"/> with status 200.

robots.txt on its own doesn't remove pages either. Google's robots.txt introduction says it's "not a mechanism for keeping a web page out of Google." It manages crawling. It isn't an indexing or removal control.

Restricted tools need real access control

An internal admin page, a staff-only dashboard or a preview tool with unpublished content is a security question, not an SEO one. robots.txt is a public file that any visitor can read, so listing a secret path there advertises it. noindex stops a compliant search engine from listing the page. It does nothing to stop a person who has the URL.

Use authentication and authorisation that the server enforces: a login, an identity provider, network restrictions, or a platform's deployment protection. The synthetic app shows only the status behaviour, using HTTP Basic auth in middleware as a stand-in:

RequestStatus
GET /tools/admin without credentials401 Unauthorized with WWW-Authenticate: Basic realm="tools"
GET /tools/admin with valid credentials200 OK

Basic auth is a demonstration here, not a recommendation for production. The demo's hard-coded username and password exist only in the local synthetic app. Never copy that pattern into a real deployment. The point is that the server refuses the request. Once a page is properly protected, crawlers can't fetch it, and you don't need to rely on noindex to keep it out of search.

A retirement checklist for a rebuild

  1. List every old URL: from the old sitemap, analytics landing pages, backlinks you know about and internal links. Include case studies, service pages and anything shared in proposals.
  2. Classify each one with the decision table: equivalent / gone / useful-but-not-in-search / restricted.
  3. Map redirects one-to-one to real equivalents. Avoid chains: point old URLs straight at the final target.
  4. Build a helpful not-found page and confirm missing URLs really return 404 (or 410 where you chose it) on a production build.
  5. Check noindex pages are crawlable: not disallowed in robots.txt, returning 200 with the robots meta tag or header.
  6. Put restricted tools behind real access control and confirm unauthenticated requests are refused.
  7. Update internal links so the site links to new URLs directly, not through redirects.
  8. Re-check after deploying, from outside, with the status codes in this table as the expected results. (This article's checks were local only. Your hosting layer can add its own redirects or headers.)

What was tested

These are the observed results. They came from a synthetic app recorded as running Next.js 16.4.5 on Node.js 24.22.1, built with next build and served with next start on localhost on 7 November 2026, checked with curl. Those versions describe that run's environment. The demo's package.json uses version ranges and has no lockfile, so it doesn't by itself pin a reproducible build. The app isn't this site's code. Not tested: any live site, any hosting platform's edge behaviour, how Google or any crawler classified these URLs, this site's own redirects and render routes, and the 301, 307 and 403 responses mentioned in the text.

RequestObserved
/work/old-case308 Permanent Redirect, location: /work/new-case
/work/new-case200 OK
/work/gone-case410 Gone
/work/retired-no-successor (no route)404 Not Found, robots noindex
/guides/print-checklist200 OK, robots noindex, follow
/soft/missing (loading boundary)200 OK, robots noindex (could be classified as a soft 404)
/hard/missing (no loading boundary)404 Not Found, robots noindex
/tools/admin (no credentials / with credentials)401 with WWW-Authenticate / 200

If you're working through the wider technical SEO checklist for a launch, website SEO basics that drive results covers the fundamentals around this.

If you want help

Retiring pages well is part of planning a rebuild: the URL map, redirect rules, not-found handling and status checks before launch. I can help with that as part of growth and technical SEO work.

Put the thinking to work

What could this change for you?

Tell me what you’re building — I’ll tell you honestly where I’d start.

Start a project with me