Add subdomain linking to main site

Permalink
Customer site moved so they switched their dns to their new server. But they still want access to the old site via old.domain.org . They added the record pointing to my server IP address. But what do I need to change in C5 to make it work? Is it done from config panel or directly in code?
I changed my host file so I can get to the old site. Login to C5 isn't working. Wondering if it's due to dns issues and my host file change.

 
stoneyard2018 replied on at Permalink Reply
I would like to know that answer to this.
ob7dev replied on at Permalink Reply
ob7dev
You can set it in application/config/generated_overrides/site
return [
    'sites' => [
        'default' => [
            'name' => 'c5 site',
            'seo' => [
                'canonical_url' => 'https://subdomain.ob7.us/',
            ],
            'canonical_tag' => [
                    'enabled' => true,
            ],
        ],
    ],
];
or you can change it under settings "URL and Redirection"