Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

I have two of the same domains with the most common TLDs in my country, mydomain.ca (primary domain to be redirected/forwarded to) and mydomain.com.
The domains I have purchased are from GoDaddy, and I have already set their name servers to Digital Oceans’ NS1, NS2 and NS3 servers on the GoDaddy domain control panel.
Both domains are now setup on my Digital Ocean account and pointed at my Ubuntu 16.04 LAMP droplet. I have setup a simple CNAME record on both domains to catch the www subdomain. The droplet can be successfully accessed through a web browser via both domain names. The CNAME records however, seems to only work on the .ca domain. The .com domain still displays a blank page instead of the content that I have residing inside of the var/www/html/ like the .ca domain does as it should (I suspect this just the time that it can take for this kind of server stuff to be done).
Now, I have looked around quite a bit and tried a few things including the Forwarding Panel in the DNS settings for GoDaddys’ domain control panel, and a tutorial here on DigitalOcean that talks about Apache and Nginx Redirects, however it only works for a single page, not the entire website, the former didn’t work while the latter isn’t exactly what I am looking for (almost is). The end result I am looking for is to properly and securely setup a 301 redirect from mydomain.com/www.mydomain.com to the primary domain mydomain.ca/www.mydomain.ca, including all the pages.
If there is more information needed, let me know. Thanks a lot in advance! I am really liking the DigitalOcean services and community from the short few days I have been here. :)
Edward Sitarski
1fd6b9d2a2b94ee4b3e8ee6d5e2587
Traceurity
fadecomic
Mollie Semmes
Will Walters
f4df2e98b9c74f7eb7f6a0629cf1c4
erel
fingers
fingers