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.
2
Answers
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.
If I’m following you correctly, you…
So based on the above assumptions, it sounds like your domain is still with GoDaddy, and it’s still pointing to GoDaddy’s name servers. So if you add a new subdomain in Namecheap, it won’t do anything, because Namecheap doesn’t have control of the DNS. And for that matter, I think your subdomains would still be pointing to GoDaddy’s servers.
Again, assuming I followed your description correctly, I’d recommend you migrate your old domain to Namecheap since, I’d assume, you’re going to close your GoDaddy account at some point. If you need to urgently create a subdomain, you would need to do that on GoDaddy’s end.
Hope this helps.