Created
June 16, 2021 09:21
-
-
Save sukhikh18/5ea9432a4673c0ad099910729a3af199 to your computer and use it in GitHub Desktop.
Установить 404 #Bitrix
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (!defined("ERROR_404")) define("ERROR_404", "Y"); | |
\CHTTP::setStatus("404 Not Found"); | |
if ($APPLICATION->RestartWorkarea()) | |
{ | |
require(\Bitrix\Main\Application::getDocumentRoot() . "/404.php"); | |
die(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment