I want to set the template path specifically for a subdomain - outside of the default_site templates, while still using the same site/entries/data. MSM isn't what I need here and related posts I can find just uses a template group inside of the current set of templates.
So far I have the subdomain loading the site and hitting my conditional in index.php:
if($_SERVER['HTTP_HOST'] == 'sub.domain.com')
{
$assign_to_config['site_url'] = 'http://sub.domain.com/';
$assign_to_config['site_name'] = 'admin';
$assign_to_config['template_group'] = 'home';
$assign_to_config['global_vars'] = array(
'subsite_id' => 'admin_site',
'domain' => 'http://sub.domain.com/',
'site_name' => 'Admin Portal',
);
}
My main default_site template path resolves as /home/site/public_html/templates/default_site
I want the subdomain path to use /home/site/public_html/templates/admin_site
Is there a param I can add to set the template path when coming in on the subdomain? Are any edits needed to .htaccess as well?
Thanks!