I'm kind of lost with this. I've got a domain parked on a web hosting company.
The webpage is a webapp that generate too much traffic to be on a shared hosting.
On current server I manage the emails account for the same domain. I copy the web to a dedicated server and get it up and running.
How could I sent all www.domain.tld traffic to my d. server ? Because if I either go to domain.tld or www.domain.tld I land on the same page.
On CPanel I have:
www.domain.tld CNAME domain.tld
So, If I get it right when I visit www it just redirect to domain.tld. Thats ok because it's all on the same server.
I could change the CNAME of www and point to my server, right? What if the visitors visit without www (naked domain?).
I'm afraid to lose mail accounts or other functions.
Edit for clarification:
The shared hosting provides web, ftp and mail services (among others). The website generates too much traffic for this kind of hosting so we're moving it to a box in a dedicated server. But only the web. Mails and ftp will stay on current server.
If the user types http://www.domain.com or http://domain.com it should be redirected to the new server. For the www changing from CNAME to A should be enough but I don't understand how http://domain.com should point either to www or directly to the dedicated.