404 page needs meta description (just to make Google happier)?

17,265

Solution 1

The most important thing for your 404 pages is the header's status code: it must be 404 not found.

It's maybe stupid to say that, but in dynamics applications, with an URI like this http://my.webapp.invalid/index.php?id=4, when id=4 return nothing, many web developers returns a 404 message with a 200 OK status code...

An other thing: for example, if someone try http://my.webapp.invalid/index.php?id=toto whereas id only accept integer, it's not a 404, but a 400 Bad Request that you must return.

It's easy to handle this, for example, with the header function in PHP or the HttpWebResponse.StatusCode Property in .Net

Solution 2

No. Why worry about your PR for your 404 page. I would be more worried on making sure none of your links end up there in the first place.

Solution 3

From a search engine POV you can even have an empty 404 error page. But your server must serve the correct status code (404 or 410) to say that the page the client is asking for no longer exist.

From a user POV having a well crafted error page is important because you don't want to let the user go away just because he, for example, followed a broken links: you want to give the user options to find his way on your website giving him for instance:

  • a search box
  • a link to the site map
  • a list of page similar to the one he was looking for (Google itself can help you)
  • a simple form to contact the webmaster

Since usually the content of the meta description tag is not visible to the user, It's absolutely OK if you don't fill it up.

Solution 4

Meta information for a 404 page doesn't makes sense.

Return the proper 404 header is far way more important than any other technical measure.

From non-tech POV you should really consider returning useful information, instead of just an error message. Using the sitemap and internal search tools, providing some fruitful measures to your users makes much more sense (and make users happier, what makes your site better)

Share:
17,265

Related videos on Youtube

Kristian Damian
Author by

Kristian Damian

Just love coding all day long! Now I'm using PHP and Javascript for my daytime job. I took part in realizing all the back end application to handle the orders, contracts and invoices for a site that sells posta certificata per aziende. Language I love most is C++ Language I hate most is VB6/VB.NET Wishes: to see PHP becoming more OO with operator overloading, and Python add curly braces. I have started coding in BASIC since I was a 13 years old kid with a Commodore 64 and Apple II. During University they taught me C and C++ and JAVA and I realized even more how much I love to code. :) Funny stuff: Micro Roundcube plugin to improve the search box

Updated on September 17, 2022

Comments

  • Kristian Damian
    Kristian Damian over 1 year

    I'm fixing some minor things on the 404 page for all my websites. My punctiliousness makes me unable to sleep well unless I get an answer to this question. :)

    Does a 404 page need a meta description tag? If yes filled with what, "page not found"?

    I would say no, if Google really cares more about contents and user frienly site rather than about what is on the page (moreover the 404 page snippet should never show up in Google cause server is sending real 404 code).

    But after reading all this stuff:

    on how they suggest to fill up a 404 page (that I always thought should just be a simple 404 page) I started to feel worried about meta description too.

    • John Conde
      John Conde over 13 years
      Do you think your 404 page is going to rank well or drive in traffic? I didn't think so, either. :)
  • Daniel Springer
    Daniel Springer over 8 years
    Does that mean in the h1?
  • Stephen Ostermiller
    Stephen Ostermiller over 5 years
    A 400 bad request usually indicates a protocol level problem with HTTP. Something like malformed headers. I wouldn't recommend using a 400 Bad Request status for an invalid parameter value. A "404 Not Found (What is this 'toto'??? I can't find it.)" would be fine. This StackOverflow answer suggests error codes 422 (Non-standard) or 403 (Understood, refused to fulfill) when the request syntax is correct, but has an invalid parameter.
  • Stephen Ostermiller
    Stephen Ostermiller over 5 years
    Search engines don't index 404 pages anyway. That meta tag wouldn't hurt anything, but it won't do anything either.
  • ACJ
    ACJ over 5 years
    If a 404 page has the proper headers this should indeed be the case. :)