When you run the site in subdomain, you need to declare that subdomain in Site setting->Setup->Subdomains and add your domain there Read more in the docs