2 min read

Choosing Between 301 Redirects and 404 Error Pages

Choosing Between 301 Redirects and 404 Error Pages

A common question that often arises pertains to the choice between utilizing millions of 404 error pages or employing 301 redirects.

Google's very own Gary Illyes recently offered some clarity on this matter, shedding light on how we should approach each status code.

404 vs. 301s?

The query presented was quite straightforward: "What is less harmful: having millions of 404 error pages or millions of 301 redirects, where sold product pages redirect to the parent listing page?"

To which Gary's response was succinct, though perhaps deserving of a more detailed explanation. Here's what Gary had to say:

"404 status codes are completely harmless, and so are 301. You need to decide what’s better for your scenario and fly with that."

Status Codes

Gary makes reference to "status codes" when discussing the 404 and 301 responses.

These responses serve as messages from the server to a browser or bot in response to a request for a webpage.

This interaction between a browser and a server is essentially a request for a webpage, and the server's reply communicates the status of that request.

This is why Gary refers to the 301 and 404 codes as status codes. They are, in essence, responses from the server to the browser's request and are often referred to as response codes.

Technically, they are status codes, aligning with the terminology used by the World Wide Web Consortium (W3C), the creators of HTML standards.

Five Categories of Status Codes

There are five categories of status codes, each serving a distinct purpose:

  • 1xx (Informational): Signifying that the request was received and the process is ongoing.
  • 2xx (Successful): Indicating that the request was successfully received, understood, and accepted.
  • 3xx (Redirection): Suggesting further action is needed to complete the request.
  • 4xx (Client Error): Highlighting issues such as bad syntax or an unfulfillable request.
  • 5xx (Server Error): Denoting server failure in fulfilling a seemingly valid request.

Understanding Error Pages and Error Codes

The term "404 error pages" is commonly used to describe pages that are not found, even though the pages themselves are not in error.

Rather, it means that the request for a missing webpage "cannot be fulfilled."

The server's response in this case is a 404 status code, indicating that the page was not found.

It's important to clarify that a 404 response is neither inherently good nor bad; it's simply a response indicating that the page in question cannot be located.

According to the W3C, the 404 (Not Found) status code signifies that the origin server did not locate a current representation for the target resource or is not willing to disclose whether one exists. Importantly, a 404 status code doesn't specify whether this absence of representation is temporary or permanent.

Similarly, Mozilla Web Docs defines the 404 status code as an indication that the server cannot locate the requested resource, with no determination made regarding the duration of this absence.

This clarifies why Gary Illyes asserts that "404 status codes are completely harmless."

Choosing Between 301 and 404 Responses

Gary emphasizes that the choice ultimately rests with the individual publisher and what works best for their unique circumstances. Webpages can go missing for various reasons.

For instance, if pages are missing due to a merger of two sites and there are old or outdated pages that closely match new pages in topic, a publisher can opt for 301 redirects. These redirects guide users from old pages to new ones with similar themes.

However, if no suitable topic match exists for certain pages, using 404 responses is a valid approach to signal that the page is absent.

In cases where removal is permanent, a 410 status code can be employed, although Google treats the 404 and 410 responses similarly.

So, What Then?

Ultimately, the guiding principle should be what serves the user's experience best. Consider scenarios where merging a Topic K site into a larger Topic A-Z site; one-to-one redirects to relevant pages in the bigger site for Topic D may make sense, while the remaining pages could redirect to the main category page for Topic D within the larger site. As Gary aptly states, "You need to decide what’s better for your scenario..."

How to Write Effective Meta Descriptions

3 min read

How to Write Effective Meta Descriptions

A meta description plays a pivotal role in search engine optimization (SEO). It serves as a concise introduction for users, providing a sneak peek...

Read More
Google's Bard Enhancements and Integration with Google Services

1 min read

Google's Bard Enhancements and Integration with Google Services

Google has introduced new features to Bard, making it more capable and integrated with various Google apps and services.

Read More
Battle of the AI Titans: Google Bard vs. ChatGPT for SEO Domination

6 min read

Battle of the AI Titans: Google Bard vs. ChatGPT for SEO Domination

In a world where algorithms reign supreme, ChatGPT shook the digital landscape in November 2022, amassing a staggering 1 million users in just...

Read More
Microsoft's Groundbreaking Generative Retrieval Model

2 min read

Microsoft's Groundbreaking Generative Retrieval Model

Microsoft Research recently unveiled a groundbreaking conversational question answering model that promises to redefine the future of web search. ...

Read More
Using ChatGPT to Navigate Microsoft Bing

3 min read

Using ChatGPT to Navigate Microsoft Bing

Microsoft's Bing has received a turbocharged upgrade with the infusion of OpenAI's ChatGPT technology. This transformation has elevated the...

Read More
Creativity and Cuteness with CatGPT: Exploring the Feline-Inspired AI

3 min read

Creativity and Cuteness with CatGPT: Exploring the Feline-Inspired AI

A new ChatGPT tool has emerged, one that's bound to tickle your feline fancy and bring a smile to your face: CatGPT. Yes, you read that right –...

Read More