var subdir = ''; var subdomain = ''; if (subdomain) { subdomain = subdomain.substr(0, subdomain.length - 1).split('.') .join('_') .toLowerCase() + '.'; } // In case of no ssi provided by the webserver, use empty strings if (subdir.startsWith('