I want to add a subdomain to my site (mysite.local) so it is, x.mysite.local and I want that to land on a custom page, i.e. a node, a view. I do not want to use the domain module because it has way more stuff that I need. Is there an easy way to do that in a custom module?
I tried doing something like this in settings.php but that does not seem to work:
// Get the subdomain: $sub = explode('.', $_SERVER['HTTP_HOST'])[0]; if ($sub == 'test') { $config['system.site']['page']['front'] = "node/12664"; }