Views: 2447 (Data available since 06.02.2017)
Sometimes it may be required to allocate certain website sections as subdomains of the main website. For example, it may be necessary to organize a forum at http://www.mysite.ru/forum/ and not at http://forum.mysite.ru. This can be achieved by using the methods of multisiting in different domains. In this case, the website remains the same and the license is not breached.
In this case, in order to set up different templates for different folders, select a condition to display the PHP expression template and insert the following code:
$_SERVER['HTTP_HOST'] == 'site2'
is the domain name for which own template of the website applies.