consultant

Member
Nov 18, 2015
6
0
1
Seattle
cPanel Access Level
Root Administrator
I just noticed by default all sites on Cpanel don't domain.com www.domain.com. Rather than do a .htaccess rule for each site how can I change it to the default for all website to redirect 301 domain.com to www.domain.com? Or is it better practice to do it the other way around? It seems Google defaults to www when you do have redirection setup so I figured best to redirect to what Google defaults to.

p.s. I have modsecurity running
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
I just noticed by default all sites on Cpanel don't domain.com www.domain.com.
Hello :)

The "www" alias is added by default. Could you provide an example of what you are attempting to configure? For instance, are you attempting to configure a redirect to ensure the "www" prefix loads by default when accessing the "non-www" prefix in your web browser?

Thank you.