J
J
jakiro124012042102021-05-05 13:02:48
PHP
jakiro12401204210, 2021-05-05 13:02:48

How to check for 404 error via PHP or Biitrix?

The products page has a 404 page if the item is not found.
How to check if 404 opened or not?
And for example, if 404 opened - display on the page echo('404");

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin, 2021-05-05
@kot999

if a 404 page opened, then the server code has already checked for the requested element, did not find it, and has already displayed a 404 page.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question