"Server not found" only when using wordpress after changing hosting of the domain


I’ve just recently set up an account at digitalocean and I love it so far! I moved my websites to the server and everything works great when i access them with the ip and using aliases in 000-default, but yesterday I changed the domain name servers to digitalocean and created a domain here and my website is no longer working.

I know it takes between 24 and 72 hours to propagate all the DNS servers, but what is really weird is that if I just create a plain index.php file with just

echo "Hi";

it works. As soon as I switch back to my wordpress index.php and it gives me server not found. I tested it even through google pagespeed insights tool, and it is the same. When i use the simple “Hi” file it loads, when I use the wp file google gives me a DNS error.

Any help is much appreciated. Any suggestions?

Cheers Vasil

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

It sounds to me like the domain is resolving but the settings in WordPress are not matching up with the newly configured domain. If you can access the wp-admin control panel via the IP address, try adjusting the siteURL fields on the settings page to ensure they match up with the new name.

Based on your description it sounds like WordPress is attempting to redirect connections to a URL that is no longer good.