Answer the question
In order to leave comments, you need to log in
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
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 questionAsk a Question
731 491 924 answers to any question