Proper Config To Use www prefixed website address?

jazee

Well-Known Member
Jan 12, 2015
145
15
68
cPanel Access Level
Root Administrator
When you setup an account you just use the domain name, like somedomain.com. So email to [email protected] is handled. I have the website (Wordpress) configured for somedomain.com instead of www.somedomain.com. I noticed that all my inbound links are using www. so I want to change my website to use www.somedomain.com. Just changing it in wordpress doesn't work as it appears Cpanel still redirects it since there's no www entry in the account config.

What's the "proper" way to set it up? I want CPanel to serve the website at www.somedomain.com without any redirecting and want it to redirect somedomain.com to www.somedomain.com
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,309
363
Houston
Any time you're using www. you're using a subdomain of somedomain.com. Typically you'd implement a CNAME for www.somedomain.com -> somedomain.com, which essentially parks it on top of somedomain.com

The only way to properly configure this so users are brought to www.somedomain.com instead of somedomain.com when they navigate to somedomain.com is to implement a redirect.