Search code examples
wordpressdnssubdomaincpanelwhm

Subdomain install no longer working after domain switch


I have about five different subdomains on my host that are all working fine with wordpress installed.

I recently switched from Godaddy to Namecheap and bought a new domain name.

I changed the domain on my WHM Server which was all fine with my current sites.

The problem I have is when adding a new subdomain and installing Wordpress the site breaks because of DNS issues.

The Wordpress auto install is also weird as it doesn't detect the root like it used to, it puts the sub domain name into a folder above public_html.

So old subdomains are working fine but adding a new subdomain brings dns errors with wordpress installed.

Any ideas please, I've spent a solid five hours on this already.

Thanks.


Solution

  • Fixed the problem myself, for anyone with a similar issue. I even went through Hostgator support who couldn't figure out the problem.

    Logged into WHM > DNS Functions > Edit DNS Zone

    The sub domain in question was not named correctly, it was named as the directory name instead of the full url.