L
L
lexstile2017-05-23 17:09:34
1C-Bitrix
lexstile, 2017-05-23 17:09:34

How to assign status 404 when a section is not found in Bitrix?

In the component call, where url = /o-kompanii/actions/:

"SET_STATUS_404" => "Y",
    "SHOW_404" => "Y",

The section gives a status of 200, but it should be 404, or redirect to a 404 page (available).
With url = /o-kompanii/actions/xxx - error 404 crashes regularly.
Infoblock activity is disabled in the admin area.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question