Views: 2448 (Data available since 06.02.2017)
Last Modified: 10.10.2012

The system settings allow to temporarily close access to public section; for example, during server maintenance.

Button on the Kernel module settings page

However, this will cause closing all sites altogether. To close only one site, place the following call in the /bitrix/php_interface/en/init.php file:

include($_SERVER["DOCUMENT_ROOT"]."/en/underconstruction.html");
die();

In the underconstruction.html file, place a message to be displayed to visitors instead of standard site pages.



Courses developed by «Bitrix», Inc.