How can I cover both "www.domain.com" and "domain.com" with the same settings in my config file? My current file is set up like this:
return array(
'*' => array(
// Settings here
),
// Local
'domain.dev' => array(
// Settings here
),
// Staging
'staging.domain.com' => array(
// Settings here
),
// Production
'www.domain.com' => array(
// Settings here
)
);
Can I just remove the www
from the last entry under “Production” to have those settings apply to both the naked domain and the www
subdomain?
And if I'm including the www
in my siteUrl
config setting in Production, will that create any conflicts if visitors end up at a naked url without the www
subdomain specified?
Thanks!