Authored on
Article
Title

Page Not Found?

Subheader

Managing Redirects and Archived Content

Lead-in

Almost everyone who browses the internet has seen a page with the message “404: Page Not Found.” It means the URL you just tried to load is no longer available.

What’s less understood is how 404s and related status codes affect your site’s search indexing, and people’s ability to find your content.

As a site owner, you need a plan for keeping content available, and a way to know when important links break. Let’s look at how to keep your content findable.

Featured Image
Laptop displaying a 404 error with a sad face icon above the keyboard.
Sections
How to handle content changes

Content on an active website should change regularly: new content gets added, existing content gets edited and improved, and old content gets archived.

Your navigation needs regular review too. Make sure the terms, tags and paths you use make sense to your users, and that people are finding what they need.

All of these changes affect your URLs. When a URL changes, it’s your job to tell people where to go. That means updating links across your own site, AND making sure search engines and referring websites catch up too.

For content you move but still want to be found, you need a redirect: a small rule pointing the old URL to the new one.

A content management system (CMS) like Drupal can do this automatically with the Redirect module. Every time you change a URL, it creates a redirect for you. When a browser requests the old URL, it reads the redirect and sends the user to the new one. This happens so fast nobody notices.

On the server end, there’s a code for this. A redirect for a changed URL is typically a “301: Moved Permanently.” You don’t need to memorize it or enter it anywhere, but it’s useful to know when you’re monitoring for broken links.

Sometimes you’ll need to create a redirect by hand, like when you’ve moved content to a different page and want users to look there instead. Say you had a page about “paid family leave” under “services/benefits,” and now you want it at its own URL, “services/paid-family-leave.” A developer can set that up for you. If you’re using the Redirect module, you can also add it yourself while logged in.

That covers content you want found. But what about content you’ve deleted or archived, and don’t want anyone viewing?

Broken links are expected

A site can be healthy and still have a number of 404s. Surprised? I was.

Old, irrelevant content should go away, like a past event or an outdated application. Otherwise your site gets cluttered with the past, which distracts users from what’s relevant today.

There isn’t always a new URL to send users to, though. Even if it seems helpful, redirecting a deleted page to the homepage isn’t the answer. Google calls these “soft 404s”: redirects that don’t lead anywhere relevant. Search engines want to know when content is gone, not just moved.

So when you’ve removed a page and there’s no replacement, don’t worry about the old URL. Let it return a 404. This is normal.

Unpublished content in your CMS
Gray Published toggle next to blue Save button.

With a CMS like Drupal or WordPress, it’s common to have some content unpublished. A university might unpublish last year’s Parents Weekend page, planning to reuse it next year.

If that content was public before, search engines have probably indexed it. Now when someone follows one of those links, they get an unfriendly “403: Forbidden” message.

Keeping unpublished content hidden is the right call. But there’s a better way to tell users and search engines what happened. When you unpublish, pick the response that matches your intent:

  1. Gone for good, with a replacement: Use a 301 redirect to send users to the newer page.
  2. Gone for good, no replacement: Let it return a 404, and search engines will catch on over time. If you need it marked gone as fast as possible, a “410: Gone” code does that, but it’s not usually necessary.
  3. Temporarily unpublished: Return a 404 to anonymous users instead. This doesn’t matter much to search engines, but for users, “not found” is a better experience than a message that makes them think they did something wrong.

Note that option 3 won’t happen automatically. It takes a little extra work. In Drupal, there are a couple of options:

  • ECA module: Set up a rule that returns a 404 for all unpublished content. Here’s a sample.
  • Unpublished 404: A simple module that returns a 404 for unpublished content instead of a 403.
How do HTTP codes relate to search?

Status codes don’t affect your Google ranking on their own. But they do affect how search engines index (or don’t index) your pages, and that’s the main reason to pay attention.

For example, if a page with good backlinks starts returning a 404, you’ll lose search rank. That’s why redirects matter so much, when they’re appropriate.

The biggest risk of 404s and lost rank comes during a site redesign. It’s common to move content around, combine pages or retire old content. Before launch, make sure every changed URL has a redirect. 

We typically build a spreadsheet of all your old URLs and make sure redirects are in place. We can also import the entire list into Drupal for you, which saves a lot of manual work.

What about the other codes?

So far we’ve covered 301 (Moved Permanently) and 404 (Not Found). But there are other HTTP codes to know and love (well, the loving part is up to you).

Status codes fall into five groups, based on their first digit:

  • 1xx (informational): Pretty uncommon to see, related to processing a request (e.g., 100: Continue)
  • 2xx (success): Also uncommon to see, because things are working as planned (e.g., 200: OK)
  • 3xx (redirects): Pointing users to a new URL (e.g., 301: Moved Permanently)
  • 4xx (client errors): Codes blaming you for the result (e.g., 403: Forbidden)
  • 5xx (server errors): Codes blaming the server (e.g., 502: Bad Gateway)
Final word

HTTP codes are generally something the average person can ignore. But pay attention to your own site’s content, and have a plan for archived content, unpublished content and pages you move.

If you’re not on Google Search Console, set it up. It reports what Google finds when it crawls your site, including problems like pages not found. And if you have a web partner, ask them to help with periodic reviews of your site’s redirects.

About the Author

About the author

headshot of Dan

Dan Moriarty is the co-founder, CEO and chief strategist with Electric Citizen.