Views: 7992
Last Modified: 15.09.2014

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 Bitrix24