Views: 864 (Data available since 06.02.2017)

System settings provide for a possibility to close a website for public, e.g., during maintenance. This can be done on the setting page of the main module (Control Panel > Settings > System settings > Module settings >Kernel module):

However, the indicated possibility permits performing an action only for all the websites of the system simultaneously. In order to close a specific website which is a part of a multiple site configuration, a special program code must be placed in the file:

/bitrix/php_interface/s2/init.php
include($_SERVER["DOCUMENT_ROOT"]."/s2/underconstruction.html");
die();

where, s2 is the identifier of the website to be closed.

A notice that is to be shown to visitors instead of standard website pages shall be placed in the file underconstruction.html.



Courses developed by «Bitrix», Inc.