📜 ⬆️ ⬇️

404. No error handler - the visitor is lost.

I was surprised to find that even experienced web developers often forget that the site needs a 404 error handler (page not found).

I am even more surprised when people ask me why she is needed at all.

In this post I will describe not only the reasons for the error, but also how beneficial it is to use this page for the site owner.
')
Causes of error

As a result, the visitor is lost, because gets black text on a white background without any design and binding to your site:
Not found
The requested URL / asdsadqwe was not found on this server.

And this instead of the adequate message that the page was moved or deleted and recommendations on where it should start further communication with the resource.

How to use 404 page

This page is just a treasure for expressing creative messages and advertising. For example, Yandex has a “secret” advertising page.

Corporate websites and online stores may well use it as a page with special offers or discounts.

Creative people can boast of non-standard thinking and arrange this page as no one else on the Web. For example, here is a collection of such examples of page 404.

You can add a search form to this page. Perhaps even with the already entered categories of goods that I want to sell.

You can show on this page a site map.

Some recommendations

Text and picture should be thematic and meet the expectations of visitors, because due to too unusual design it may seem as if you are on another resource
Do not forget about the standard elements of navigation and design, so that people can continue their work with the resource.
Do not call the 404 page, many users do not know what it is.

PS And just in case, you should periodically check your site for the presence of "broken" links, including external ones.

Source: https://habr.com/ru/post/115409/


All Articles