Picto thématique

Rule n° 215 - The server sends a 404 HTTP error code for resources not found

This is not only to inform your visitor to an address error: it is also useful for various tools such as search engines. The call of an error in address should always result in a 404 (not found) by the server. Curiously, in some cases, the server or CMS used return a 404 error page accompanied by a code 200 (which means "OK, everything is fine").

#Server and performances #Development #SEO

Goal

  • Enable the automated detection of incorrect URLs.
  • Send reliable information to the browser.
  • Reduce the energy impact related to the consultation of the site.
  • Improve the way content is taken into account by search engines and indexing tools.

Implementation

Modify the web server configuration to send the user to a customised page when the requested resource does not exist

If the main server configuration is not directly accessible and if the environment allows it, use a local configuration by directory. For example, the Apache environment authorises the creation of an .htaccess file containing directives relating to error handling: ErrorDocument 404 /mapage.html.

Control

For each site checked:

  • Enter the URL address of the site followed by random characters (such as http://www.example.com/lsghlshdgkjsdgk).
  • Check with a development tool that the status shown is 404 not found.

By Opquast - Read the license

Business application and benefits

The rules should be applied to your projects from the design phase through to post-implementation , and they should be understood by all professionals with web and customer experience (CX) responsibilities: from strategy to operations, marketers to project managers, and editorial to technical staff. The benefits of using this ruleset are numerous, including improving customer satisfaction, web performance, and e-commerce, and expanding your client base, while also decreasing your errors and costs.

Multidisciplinary verticles - accessiiblity, SEO, e-commerce, ecodesign etc..- starting from the foundational Opquast base.

The objective of these rules and the Opquast community mission is ‘making the web better’ for your customers and for everyone! Opquast rules cover the key major areas of risk that can negatively affect website users such as privacy, ecodesign, accessibility and security.

Opquast training has already allowed over 11,000 web professionals to have their skills certified. Train your teams or your students, contact us