V
V
Valery Gutin2018-04-08 14:24:31
Search Engine Optimization
Valery Gutin, 2018-04-08 14:24:31

How to create a 404 page correctly?

Hello.
How to create a 404 page correctly from the point of view of search engines?
Should it be a single URL or not?
For example, when entering a non-existent address on mydomain.com/ page /asd, it redirects to mydomain.com/ page /404, and when mydomain.com/ catalog /asd redirects to mydomain/ catalog /404, respectively.
Is it correct? Or is it better to always have mydomain.com/404?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim, 2018-04-08
@Qumbeez

The redirect should not happen, and on the wrong URL you return the content of the 404 page.

F
Felix_vek, 2018-04-09
@Felix_vek

Good afternoon,
No, there shouldn't be any redirects. which page is not available, such an address should be.
That is, when visiting a non-existent page mydomain.com/page/asd, the server should return a 404 response, just like when visiting a non-existent page mydomain.com/catalog/asd

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question