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:
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.