I have an Ubuntu server with the following domains:
While testing the site via mobile, I noticed the phone would force the url to:
Which would show page not found, DNS error.
So to fix this I added a CNAME record to the main domain (hosted elsewhere on Cpanel) and pointed the CNAME: www.sub.example.com to sub.example.com.
This works... except for one thing.
My staging domain is loading instead of the sub.example.com domain.
How do I fix this?