Hello,
I have this current set up with my website:
www.domain.com
subdomain.domain.com
However, when I create subdomain.domain.com it will always redirect to www.subdomain.domain.com
I have found a way to temporarily fix this. First; I remove the DNS A entry which has www.subdomain.
Next, I go into the http.conf and change ServerAlias from www.subdomain.domain.com to subdomain.domain.com
and also set UseCanonicalName to Off
However, every time I rebuild the httpd.conf file either by changing the settings or easyApache, the problem re-occurs.
The ServerAlias changes back to www.subdomain.domain.com.
(I have edited /var/cpanel/userdata/username/subdomain, but the problem still happens)
Is there a permanent fix that makes Cpanel not redirect to www.subdomain?
I have this current set up with my website:
www.domain.com
subdomain.domain.com
However, when I create subdomain.domain.com it will always redirect to www.subdomain.domain.com
I have found a way to temporarily fix this. First; I remove the DNS A entry which has www.subdomain.
Next, I go into the http.conf and change ServerAlias from www.subdomain.domain.com to subdomain.domain.com
and also set UseCanonicalName to Off
However, every time I rebuild the httpd.conf file either by changing the settings or easyApache, the problem re-occurs.
The ServerAlias changes back to www.subdomain.domain.com.
(I have edited /var/cpanel/userdata/username/subdomain, but the problem still happens)
Is there a permanent fix that makes Cpanel not redirect to www.subdomain?